Category: Uncategorized

  • Numeric Data Types

    The Oracle Database numeric data types store fixed and floating-point numbers, zero, and infinity. Some numeric types also store values that are the undefined result of an operation, which is known as “not a number” or NaN.

    networking training courses malaysia

    Oracle Database stores numeric data in variable-length format. Each value is stored in scientific notation, with 1 byte used to store the exponent. The database uses up to 20 bytes to store the mantissa, which is the part of a floating-point number that contains its significant digits. Oracle Database does not store leading and trailing zeros.

    project management training courses malaysia

    NUMBER Data Type

    The NUMBER data type stores fixed and floating-point numbers. The database can store numbers of virtually any magnitude. This data is guaranteed to be portable among different operating systems running Oracle Database. The NUMBER data type is recommended for most cases in which you must store numeric data.

    iot training courses malaysia

    You specify a fixed-point number in the form NUMBER(p,s), where p and s refer to the following characteristics:

    • PrecisionThe precision specifies the total number of digits. If a precision is not specified, then the column stores the values exactly as provided by the application without any rounding.
    • ScaleThe scale specifies the number of digits from the decimal point to the least significant digit. Positive scale counts digits to the right of the decimal point up to and including the least significant digit. Negative scale counts digits to the left of the decimal point up to but not including the least significant digit. If you specify a precision without a scale, as in NUMBER(6), then the scale is 0.

    In Example 2-1, the salary column is type NUMBER(8,2), so the precision is 8 and the scale is 2. Thus, the database stores a salary of 100,000 as 100000.00.

    itil training courses malaysia

  • NCHAR and NVARCHAR2 Data Types

    The NCHAR and NVARCHAR2 data types store Unicode character data.

    virtualization training courses malaysia

    Unicode is a universal encoded character set that can store information in any language using a single character set. NCHAR stores fixed-length character strings that correspond to the national character set, whereas NVARCHAR2 stores variable length character strings.

    qa testing training courses malaysia

    You specify a national character set when creating a database. The character set of NCHAR and NVARCHAR2 data types must be either AL16UTF16 or UTF8. Both character sets use Unicode encoding.

    software development training courses malaysia

    When you create a table with an NCHAR or NVARCHAR2 column, the maximum size is always in character length semantics. Character length semantics is the default and only length semantics for NCHAR or NVARCHAR2.

    it security training courses malaysia

    See also

    Oracle Database Globalization Support Guide for information about Oracle’s globalization support feature

  • VARCHAR2 and CHAR Data Types

    The VARCHAR2 data type stores variable-length character literals. A literal is a fixed data value.

    citrix certification malaysia 2

    For example, 'LILA''St. George Island', and '101' are all character literals; 5001 is a numeric literal. Character literals are enclosed in single quotation marks so that the database can distinguish them from schema object names.

    cisco certification malaysia

    Note

    This manual uses the terms text literalcharacter literal, and string interchangeably.

    When you create a table with a VARCHAR2 column, you specify a maximum string length. In Example 2-1, the last_name column has a data type of VARCHAR2(25), which means that any name stored in the column has a maximum of 25 bytes.

    checkpoint certification malaysia

    For each row, Oracle Database stores each value in the column as a variable-length field unless a value exceeds the maximum length, in which case the database returns an error. For example, in a single-byte character set, if you enter 10 characters for the last_name column value in a row, then the column in the row piece stores only 10 characters (10 bytes), not 25. Using VARCHAR2 reduces space consumption.

    aws certification malaysia

    In contrast to VARCHAR2CHAR stores fixed-length character strings. When you create a table with a CHAR column, the column requires a string length. The default is 1 byte. The database uses blanks to pad the value to the specified length.

    Oracle Database compares VARCHAR2 values using nonpadded comparison semantics and compares CHAR values using blank-padded comparison semantics.

  • Character Data Types

    Character data types store alphanumeric data in strings. The most common character data type is VARCHAR2, which is the most efficient option for storing character data.

    rooms

    The byte values correspond to the character encoding scheme, generally called a character set. The database character set is established at database creation. Examples of character sets are 7-bit ASCII, EBCDIC, and Unicode UTF-8.

    dell emc certification malaysia

    The length semantics of character data types are measurable in bytes or characters. The treatment of strings as a sequence of bytes is called byte semantics. This is the default for character data types. The treatment of strings as a sequence of characters is called character semantics. A character is a code point of the database character set.

    comptia certification malaysia

    See also

    • “Character Sets”
    • Oracle Database 2 Day Developer’s Guide for a brief introduction to data types
    • Oracle Database Development Guide to learn how to choose a character data type

    citrix certification malaysia 2

  • Oracle Data Types

    Each column has a data type, which is associated with a specific storage format, constraints, and valid range of values. The data type of a value associates a fixed set of properties with the value.

    devops certification training courses malaysia

    These properties cause Oracle Database to treat values of one data type differently from values of another. For example, you can multiply values of the NUMBER data type, but not values of the RAW data type.

    contact

    When you create a table, you must specify a data type for each of its columns. Each value subsequently inserted in a column assumes the column data type.

    ccna certification training courses malaysia

    Oracle Database provides several built-in data types. The most commonly used data types fall into the following categories:

    • Character Data Types
    • Numeric Data Types
    • Datetime Data Types
    • Rowid Data Types
    • Format Models and Data Types

    Other important categories of built-in types include raw, large objects (LOBs), and collections. PL/SQL has data types for constants and variables, which include BOOLEAN, reference types, composite types (records), and user-defined types.

    careers

  • Rows

    row is a collection of column information corresponding to a record in a table.

    For example, a row in the employees table describes the attributes of a specific employee: employee ID, last name, first name, and so on. After you create a table, you can insert, query, delete, and update rows using SQL.

    dynamics 365 sales training courses malaysia

    Example: CREATE TABLE and ALTER TABLE Statements

    The Oracle SQL statement to create a table is CREATE TABLE.

    Example 2-1 CREATE TABLE employees

    The following example shows the CREATE TABLE statement for the employees table in the hr sample schema. The statement specifies columns such as employee_idfirst_name, and so on, specifying a data type such as NUMBER or DATE for each column.

    dynamics 365 finance training courses malaysia

    CopyCREATE TABLE employees
        ( employee_id    NUMBER(6)
        , first_name     VARCHAR2(20)
        , last_name      VARCHAR2(25)
             CONSTRAINT     emp_last_name_nn  NOT NULL
        , email          VARCHAR2(25)
            CONSTRAINT     emp_email_nn  NOT NULL
        , phone_number   VARCHAR2(20)
        , hire_date      DATE
            CONSTRAINT     emp_hire_date_nn  NOT NULL
        , job_id         VARCHAR2(10)
            CONSTRAINT     emp_job_nn  NOT NULL
        , salary         NUMBER(8,2)
        , commission_pct NUMBER(2,2)
        , manager_id     NUMBER(6)
        , department_id  NUMBER(4)
        , CONSTRAINT     emp_salary_min
                         CHECK (salary > 0)
        , CONSTRAINT     emp_email_uk
                         UNIQUE (email)
        ) ;
    

    Example 2-2 ALTER TABLE employees

    The following example shows an ALTER TABLE statement that adds integrity constraints to the employees table. Integrity constraints enforce business rules and prevent the entry of invalid information into tables.

    dynamics 365 field service training courses malaysia

    CopyALTER TABLE employees
    ADD ( CONSTRAINT     emp_emp_id_pk
                           PRIMARY KEY (employee_id)
        , CONSTRAINT     emp_dept_fk
                           FOREIGN KEY (department_id)
                             REFERENCES departments
        , CONSTRAINT     emp_job_fk
                           FOREIGN KEY (job_id)
                             REFERENCES jobs (job_id)
        , CONSTRAINT     emp_manager_fk
                           FOREIGN KEY (manager_id)
                             REFERENCES employees
        ) ;
    

    Example 2-3 Rows in the employees Table

    The following sample output shows 8 rows and 6 columns of the hr.employees table.

    dynamics 365 customer service training courses malaysia

    CopyEMPLOYEE_ID FIRST_NAME  LAST_NAME      SALARY COMMISSION_PCT DEPARTMENT_ID
    ----------- ----------- ------------- ------- -------------- -------------
            100 Steven      King            24000                           90
            101 Neena       Kochhar         17000                           90
            102 Lex         De Haan         17000                           90
            103 Alexander   Hunold           9000                           60
            107 Diana       Lorentz          4200                           60
            149 Eleni       Zlotkey         10500             .2            80
            174 Ellen       Abel            11000             .3            80
            178 Kimberely   Grant            7000            .15
    

    The preceding output illustrates some of the following important characteristics of tables, columns, and rows:

    • A row of the table describes the attributes of one employee: name, salary, department, and so on. For example, the first row in the output shows the record for the employee named Steven King.
    • A column describes an attribute of the employee. In the example, the employee_id column is the primary key, which means that every employee is uniquely identified by employee ID. Any two employees are guaranteed not to have the same employee ID.
    • A non-key column can contain rows with identical values. In the example, the salary value for employees 101 and 102 is the same: 17000.
    • A foreign key column refers to a primary or unique key in the same table or a different table. In this example, the value of 90 in department_id corresponds to the department_id column of the departments table.
    • A field is the intersection of a row and column. It can contain only one value. For example, the field for the department ID of employee 103 contains the value 60.
    • A field can lack a value. In this case, the field is said to contain a null value. The value of the commission_pct column for employee 100 is null, whereas the value in the field for employee 149 is .2. A column allows nulls unless a NOT NULL or primary key integrity constraint has been defined on this column, in which case no row can be inserted without a value for this column.
  • Creating and Configuring an Oracle Database

    After you plan your database, you can create the database with a graphical tool or a SQL command.

    iot internet of things training courses malaysia

    • About Creating an Oracle Database
      You typically create a database during Oracle Database software installation. However, you can also create a database after installation.
    • Considerations Before Creating the Database
      Database creation prepares several operating system files to work together as an Oracle Database. You only need to create a database once, regardless of how many data files it has or how many instances access it. You can create a database to erase information in an existing database and create a new database with the same name and physical structure.

    IBM websphere training courses malaysia

    • Creating a Database with DBCA
      Oracle Database Configuration Assistant (DBCA) is a tool for creating and configuring an Oracle database.
    • Creating a Database with the CREATE DATABASE Statement
      Using the CREATE DATABASE SQL statement is a more manual approach to creating a database than using Oracle Database Configuration Assistant (DBCA). One advantage of using this statement over using DBCA is that you can create databases from within scripts.
    • Specifying CREATE DATABASE Statement Clauses
      When you execute a CREATE DATABASE statement, Oracle Database performs several operations. The actual operations performed depend on the clauses that you specify in the CREATE DATABASE statement and the initialization parameters that you have set.

    IBM lotus notes domino datastage training courses malaysia

    • Specifying Initialization Parameters
      You can add or edit basic initialization parameters before you create your new database.
    • Managing Initialization Parameters Using a Server Parameter File
      Initialization parameters for the Oracle Database have traditionally been stored in a text initialization parameter file. For better manageability, you can choose to maintain initialization parameters in a binary server parameter file that is persistent across database startup and shutdown.
    • Managing Application Workloads with Database Services
      A database service is a named representation of one or more database instances. Services enable you to group database workloads and route a particular work request to an appropriate instance.
    • Considerations After Creating a Database
      After you create a database the instance is left running, and the database is open and available for normal database use. You may want to perform specific actions after creating a database.
    • Cloning a Database
      This section describes various methods of cloning an Oracle database.
    • Dropping a Database
      Dropping a database involves removing its data files, online redo logs, control files, and initialization parameter files.
    • Database Data Dictionary Views
      You can query data dictionary views for information about your database content and structure.
    • Database Configuration Assistant Command Reference for Silent Mode
      This section provides detailed information about the syntax and options for the Database Configuration Assistant (DBCA) silent mode commands.

    VMware certification training courses malaysia

  • Invisible Columns

    An invisible column is a user-specified column whose values are only visible when the column is explicitly specified by name. You can add an invisible column to a table without affecting existing applications, and make the column visible if necessary.

    hadoop training courses malaysia

    In general, invisible columns help migrate and evolve online applications. A use case might be an application that queries a three-column table with a SELECT * statement. Adding a fourth column to the table would break the application, which expects three columns of data. Adding a fourth invisible column makes the application function normally. A developer can then alter the application to handle a fourth column, and make the column visible when the application goes live.

    exchange server certification training courses malaysia

    The following example creates a table products with an invisible column count, and then makes the invisible column visible:

    CopyCREATE TABLE products ( prod_id INT, count INT INVISIBLE );
    ALTER TABLE products MODIFY ( count VISIBLE );

    dynamics 365 training courses malaysia

    See also

    • Oracle Database Administrator’s Guide to learn how to manage invisible columns
    • Oracle Database SQL Language Reference for more information about invisible columns

    dynamics 365 supply chain training courses malaysia

  • Columns

    A table definition includes a table name and set of columns.

    ibm infosphere datastage training courses malaysia

    A column identifies an attribute of the entity described by the table. For example, the column employee_id in the employees table refers to the employee ID attribute of an employee entity.

    ibm informix training courses malaysia

    In general, you give each column a column name, a data type, and a width when you create a table. For example, the data type for employee_id is NUMBER(6), indicating that this column can only contain numeric data up to 6 digits in width. The width can be predetermined by the data type, as with DATE.

    ibm cognos bi training courses malaysia

    Virtual Columns

    A table can contain a virtual column, which unlike a nonvirtual column does not consume disk space.

    The database derives the values in a virtual column on demand by computing a set of user-specified expressions or functions. For example, the virtual column income could be a function of the salary and commission_pct columns.

    ibm aix system i training courses malaysia

  • Data Utilities

    project management training courses malaysia

    Oracle utilities are available to help you maintain the data in your Oracle Database.

    iot training courses malaysia

    SQL*Loader

    SQL*Loader is used both by database administrators and by other users of Oracle Database. It loads data from standard operating system files (such as, files in text or C data format) into database tables.

    itil training courses malaysia

    Export and Import Utilities

    The Data Pump utility enables you to archive data and to move data between one Oracle Database and another. Also available are the original Import (IMP) and Export (EXP) utilities for importing and exporting data from and to earlier releases.

    devops training courses malaysia