Monday, 27 May 2019

Oracle database 10g: SQL 1.1

Radhe Radhe

Oracle database 10g: SQL


Oracle database Objects.
Object
Description
Table
Basic unit of storage; composed
View
Logically represents subsets of data from one or more tables.
Sequence
Generates numeric values
Index
Improves the performance of some queries
Synonym
Gives alternative name to objects.


Database objects:-
An oracle database can contain multiple data structures. Each structure should be outlines in the database design so that it can be create during the build stage of database development.
·         Table:  Stores data.
·         View:  Subset of data from one or more tables.
·         Sequence: Generates numeric values.
·         Index: Improves the performance of some queries.
·         Synonym: Gives alternative name of objects.

Oracle Table Structures
·         Tables can be created at any time, even while users are using database.
·         You do not need to specify the size of a table. The size is ultimately defined by the amount of space allocated to the database as a whole. It is important, however, to estimate how much space a table will use over time.
·         Table structure can be modified online.



Naming Rules
    
   You name database tables and columns according to the standard rules for naming any Oracle database object:
·         Table name and column name must begin with a letter and be 1-30 characters long.
·         Names must contain only the characters A-Z, a-z, 0-9, _(underscore), $, and # (legal characters, but their use is discouraged).
·         Names must not duplicate the name of another object owned by the same name Oracle server user.
·         Names must not be an Oracle server reserved word.
   
    Naming Guidelines
    Use description names for tables and other database objects.
    Note: Names are case-insensitive. For example, EMPLOYEE is treated as the same name as eMployees or eMpLOYEES.


Create Table Statement
      You create tables to store data by executing the SQL CREATE TABLE statement. This statement is one of the DDL statements, which are a subset of SQL statement used to create, modify, or remove Oracle Database structures. These statement have an immediate effect on the database, and they also record information in the data dictionary.
    
     To create a table, a user must have the CREATE TABLE privilege and a storage area in which to create objects. The database administrator uses data control language statements to grant privileges to users.

Syntax:-
            Create table student_data
                                    (
                                                Column data type
                                    )

   
    Referencing Another User’s Tables
      A schema is a collection of objects. Schema objects are the logical structures that directly refer to the data in a database. Schema objects include table, views, synonyms, sequences, stored procedure, indexes, clusters, and database links.
     
     Syntax:-
            Select * from userb.employees;
      
      If USERB wants to access the employees table that is owned by USERA, he must prefix the table name with the schema name:
      
    Syntax:
            Select * from usera.employees;




j




Wednesday, 13 July 2016

Tuesday, 12 July 2016

Core Java Lab At Home 1.




Answer:-


1.Open a command or terminal window if you are using Windows O.S.

a. Click on start button.

b. Click on run.

c. Type cmd in run dialog box and the OK button.

2.Execute the java -version command. This verifies that the JRE is installed and not JDK.


3.Execute the javac -version command. This verifies that the JDK is installed.


4.Start NetBeans IDE and verify the version no. of the JDK used by IDE.

a. The installation od NetBeans places a menu in your Start menu.


b. Within NetBeans, click the Help menu, and then click  About.

c. The About dialog box displays both the NetBeans and JDK version numbers that are being used.

d. Click the CLOSE button to close the about dialog box.









Answer:-

1. Obtain the required software:

a. if you require both JDK and NetBeans, the easiest method is to download "JDK 7 With NetBeans 7.0.1" co-bundle.

b. If you require the JDK , download the Java SE 7 JDK.

c. If you require just the NetBeans IDE,Download "NetBeans IDE 7.0.1 For Java SE"


2.Install the required software.

3.Verify the software installation.









Answer:-


1. Configure NetBeans to be aware of the Java 7 platform.

a.In the NetBeans IDE ,select Tools and the Java Platforms from the Main menu.

b.click the Add Platform button and specify the directory that contains your JDK 7 Installation.

c.In the platform Name step, Verify that the default locations of the platform sources zip file and API documentations are valid.

d.Click the Finish button to close the Add Java Platform dialog box.

e.Ensure that JDK 1.7 is selected in the platforms list and click close.


2. Configure NetBeans to start with Java  SE 7 JDK.

a. Open the directory containing the NetBeans congiguration files.

b.Use a Text Editor to edit the netbeans.cofiguration.

c.Modify the netbeans_jdkhome property to have a value of the JDK 7 installation location.


3.restart NetBeans and verify the JDK being used by NetBeans with the steps outlined in practice. 

Core Java Cycle Test 3.

Question's & Answer.



























Core Java Cycle Test 2.

Question's & Answer




































































Core Java Cycle Test 1.

Question's & Answer:-