Category: Uncategorized

  • Floating-Point Numbers

    Oracle Database provides two numeric data types exclusively for floating-point numbers: BINARY_FLOAT and BINARY_DOUBLE.

    devops training courses malaysia

    These types support all of the basic functionality provided by the NUMBER data type. However, whereas NUMBER uses decimal precision, BINARY_FLOAT and BINARY_DOUBLE use binary precision, which enables faster arithmetic calculations and usually reduces storage requirements.

    iot internet of things training courses malaysia

    BINARY_FLOAT and BINARY_DOUBLE are approximate numeric data types. They store approximate representations of decimal values, rather than exact representations. For example, the value 0.1 cannot be exactly represented by either BINARY_DOUBLE or BINARY_FLOAT. They are frequently used for scientific computations. Their behavior is similar to the data types FLOAT and DOUBLE in Java and XMLSchema.

    ibm websphere training courses malaysia

    See also

    Oracle Database SQL Language Reference to learn about precision, scale, and other characteristics of numeric types

    ibm lotus notes domino datastage training courses malaysia

  • About Selecting a Character Set

    It is important to select the right character set for your database. Oracle recommends AL32UTF8 as the database character set.

    sap wm warehouse management training courses malaysia

    AL32UTF8 is Oracle’s name for the UTF-8 encoding of the Unicode standard. The Unicode standard is the universal character set that supports most of the currently spoken languages of the world. The use of the Unicode standard is indispensable for any multilingual technology, including database processing.

    sap supply chain management scm training courses malaysia

    After a database is created and accumulates production data, changing the database character set is a time consuming and complex project. Therefore, it is very important to select the right character set at installation time. Even if the database does not currently store multilingual data but is expected to store multilingual data within a few years, the choice of AL32UTF8 for the database character set is usually the only good decision. The universality and flexibility of Unicode typically outweighs some additional cost associated with it, such as slightly slower text processing compared to single-byte character sets and higher storage space requirements for non-ASCII text compared to non-Unicode character sets.

    sap s 4 hana training courses malaysia

    If you do not want to use AL32UTF8, and you are not restricted in your choice by a vendor requirement, then Oracle suggests that you use one of the character sets listed as recommended for the database. The recommended character sets were selected based on the requirements of modern client operating systems. Oracle Universal Installer (OUI) presents the recommended list only, and Database Configuration Assistant (DBCA) must be used separately to choose a non-recommended character set. In addition, the default database creation configuration in DBCA allows the selection of the recommended character sets only. You must use the advanced configuration mode of DBCA or the CREATE DATABASE statement to select a non-recommended character set.

    If no character set choice is presented in an OUI or a DBCA installation mode, then AL32UTF8 is used as the database character set, unless a custom database template with another character set has been selected.

    sap fico financial accounting 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.

    visual studio net training courses malaysia

    Reasons to create a database after installation are as follows:

    • You used Oracle Universal Installer (OUI) to install software only, and did not create a database.
    • You want to create another database (and database instance) on the same host computer as an existing Oracle database. In this case, this chapter assumes that the new database uses the same Oracle home as the existing database. You can also create the database in a new Oracle home by running OUI again.
    • You want to make a copy of (clone) a database.

    Microsoft system center certification training courses malaysia

    The specific methods for creating a database are:

    • With Database Configuration Assistant (DBCA), a graphical tool.See “Creating a Database with DBCA”
    • With the CREATE DATABASE SQL statement.See “Creating a Database with the CREATE DATABASE Statement”

    Considerations Before Creating the Database

    Microsoft sql server certification training courses malaysia

    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.

    • Planning for Database Creation
      Prepare to create the database by research and careful planning.
    • About Selecting a Character Set
      It is important to select the right character set for your database. Oracle recommends AL32UTF8 as the database character set.
    • About Configuring an Oracle Home in Read-Only Mode
      Starting with Oracle Database 18c, you can configure an Oracle home in read-only mode. A read-only Oracle home prevents creation as well as modification of files inside the Oracle home directory ORACLE_HOME. A read-only Oracle home can be used as a software image for simplifying patching and mass rollout of software across multiple database servers.
    • Prerequisites for Database Creation
      To ensure that your Oracle Database is created successfully, review database prerequisites.

    Microsoft sharepoint certification training courses malaysia

  • 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