... chapter. SQL* Plus is Oracle s native tool to interact with the database.
You got a quick introductionto the Oracle datatypes, operators, and literals. You learned
to write simple queries using the ... produce interactive SQL statements and formatted
reports. SQL* Plus is the command-line interface to the database widely used by DBAs.
SQL* Plus has its own buffer where SQL statements are buffered. ... variables, Oracle
uses these values to execute the script.
Summary
This chapter started off with reviewing the fundamentals of SQL. You also saw an overview
of SQL* Plus in this chapter. SQL* Plus is Oracle s...
... Description
ROWIDTOCHAR
Casts a ROWID to a character
SCN _TO_ TIMESTAMP
Converts an SCN to corresponding timestamp of the change
TIMESTAMP _TO_ SCN
Converts timestamp to an SCN
TO_ BINARY_DOUBLE
Converts input into ... number
TO_ BINARY_FLOAT
Converts input into a BINARY_FLOAT number
TO_ CHAR
Converts and formats a date into a string
TO_ CLOB
Converts character input or NCLOB input to CLOB
TO_ DATE
Converts a string to ... character set to another
DECOMPOSE
Decomposes a Unicode string
HEXTORAW
Casts a hexadecimal to a raw
NUMTODSINTERVAL
Converts a number value to an interval day to second literal
NUMTOYMINTERVAL
Converts...
... available in SQL, the rules
for how to use them, and what to expect on the exam about aggregating data and group
functions. You will also explore nesting function calls together. SQL allows you to nest ... AM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Chapter
3
Using Group
Functions
ORACLE DATABASE 11g:
SQL FUNDAMENTALS I EXAM OBJECTIVES
COVERED IN THIS CHAPTER:
Reporting ... clauses to calculate multiple levels of
subtotals. It also provides a grand total. The
ROLLUP
extension adds only minimal overhead
to the overall query performance.
ROLLUP
creates subtotals...
... AM
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Chapter
4
Using Joins and
Subqueries
ORACLE DATABASE 11g:
SQL FUNDAMENTALS I EXAM OBJECTIVES
COVERED IN THIS ... single-row and multiple-row subqueries
Using the Set operators
Describe set operators
Use a set operator to combine multiple queries into a
single query
Control the order of rows returned
95127c04.indd ... alias.
To execute a join of three or more tables, Oracle takes these steps:
1.
Oracle joins two of the tables based on the join conditions, comparing their columns.
2.
Oracle joins the result to...
... rows selected.
SQL& gt;
The task before you is to merge the rows in
ORDERS2
to
ORDERS1
. If
ORDER_ID
and
CUSTOMER_
ID
match between the two tables, you need to update the
ORDER_TOTAL
value ... Oracle.
The
INSERT
statement is used to add new rows to the table. The
VALUES
clause in the
INSERT
statement is used to add a single row at a time. Subqueries can be used to add rows
to ... data is
restored. All locks on the affected rows are released.
Oracle uses read consistency to make sure you do not see the changes made to data after
your query is started. Also, Oracle uses...
... customer are stored in the same physical
storage area (block). Database storage and blocks are discussed in Chapter 8, “Introducing
Oracle 11g Components and Architecture.”
Database links A database ... important to know how to create tables and constraints on tables.
Database Objects Overview
Data in the OracleDatabase is stored in tables. A table is the main database object. Many
other database ... you to access an object from
a different database. SQL queries can reference tables and views belonging to the remote
database by appending
@db_link_name
to the table or view. For example, to...
... are widely used in Oracle Databases to ease
data access so that the user does not have to know which schema or which database the
data is coming from.
Indexes are used to get to the table row ... reference it in their SQL (or PL /SQL) as
EMP
, without needing to
specify the owner. When the statement is parsed, Oracle will resolve the name
EMP
via the
synonym to
SCOTT.EMP
.
Creating ... WITH LOCAL TIME
ZONE (TSLTZ), INTERVAL YEAR TO MONTH (IY2M), and INTERVAL DAY TO
SECOND (ID2S). Which operations are not allowed by OracleDatabase 11g? (Choose all
that apply.)
A. DATE+DATE
B....
... the Oracle11g database.
SQL* Plus
SQL* Plus is the primary tool for an Oracle DBA to administer the database using SQL
commands. Before you can run SQL statements, you must connect to the Oracle ... is the language used to interact with the Oracle11g database. Many tools are available
for the DBA to administer an Oracle11g database. The common tools are as follows:
SQL* Plus, which is a ...
constructs.
Java Stored Java procedures can be created in Oracleto define business
processes.
Database link Database links are used to communicate between databases to
share data.
You use SQLto create database...
...
to take the OCP certification exam, refer to OCP: OracleDatabase
11g Administrator Certified Professional Study Guide (Sybex, 2009).
Choose Create a Database, and click Next to open the Database ... www.verypdf.com to remove this watermark.
460
Chapter 9
Creating an Oracle11g Database
ASM Storage
Automatic Storage Management (ASM) is a newer type of storage mechanism available
since Oracle ... www.verypdf.com to remove this watermark.
Chapter
9
Creating an
Oracle 11gDatabase
ORACLE DATABASE 11g:
ADMINISTRATION I EXAM OBJECTIVES
COVERED IN THIS CHAPTER:
Creating an OracleDatabase
Create...
... each database- shutdown option is and when you might use
the option.
Be able to shut down an Oracle Database. Understand how to use the database tools to
shut down an Oracle Database.
Know how to ... www.verypdf.com to remove this watermark.
512
Chapter 9
N
Creating an Oracle11g Database
EXERCISE 9.2
Creating an Oracle11g database
You have learned to use the DBCA to create a database, learned to ... delete
a database using the command-line tool SQL* Plus.
To do so, first connect to SQL* Plus as an administrator who has the ability to start up the
database; that is, an administrator with either...
... defines the directory where Oracle can create data files. Oracle must have
read-write permission on this directory. The directory must exist on the server where the
database is located. Oracle will ... READ WRITE;
Oracle normally checks the availability of all data files belonging to the database when
starting up the database. If you are storing your read-only tablespace on offline storage
media ... the database by using the
ALTER DATABASE RENAME FILE
command.
5.
Open the database by using
ALTER DATABASE OPEN
.
Moving Read-Only Tablespaces
If you need to move read-only tablespaces to...
... architecture
Application
Server
Database
Server
Client
Internet
HTTP
Request
App
Server
Oracle
Net
RDBMS
Oracle
Net
TCP/IP
An Overview of Oracle Net Features
Oracle Net is the glue that bonds the Oracle network together. ... CUSTOMER_ADDRESSES PK_CUSTOMER_MASTER
CK_ADD_TYPE2 C CUSTOMER_ADDRESSES
CK_ADD_TYPE C CUSTOMER_MASTER
PK_CUSTOMER_MASTER P CUSTOMER_MASTER
UQ_CUST_EMAIL U CUSTOMER_MASTER
PK_CUST_REFS P CUSTOMER_REFERENCES
SYS_C002804 ... now discuss the options available in Oracle11g
to access data that resides in a non -Oracle database and to execute programs that are not
SQL or PL /SQL.
Heterogeneous Services
The Heterogeneous...
... connections to
the Oracle server. The client must also be able to resolve the net service name. Let’s look at
the checks to perform on the client to verify connectivity to the Oracle server and to detect ...
users. The first step to doing this is to make sure that each user who connects to the Oracle
Database 11g has an account. An account shared between many users is difficult to trouble-
shoot and ... addition, be able to define Oracle Advanced
Security and know when to use it.
Be able to define the main responsibilities of the Oracle listener. To fully understand the
function of the Oracle listener,...