sql loader the definitive guide

Oracle SQL*Plus The Definitive Guide- P1 docx

Oracle SQL*Plus The Definitive Guide- P1 docx

... to SQL* Plus What Is SQL* Plus History of SQL* Plus Why Master SQL* Plus Creating and Loading the Sample Tables Interacting with SQL* Plus Starting SQL* Plus Some Basic SQL* Plus Commands Running SQL ... with PL /SQL The SQL Buffer Line Editing Executing the Statement in the Buffer Saving and Retrieving the Buffer The Edit Command 18 18 26 33 35 40 40 51 54 57 61 Executing a Script 62 The Working ... Recovery 11 Customizing Your SQL* Plus Environment SQL* Plus Settings You Can Control The Site and User Profiles Environment Variable Settings The SET Command The SHOW Command A SQL* Plus Command Reference...

Ngày tải lên: 05/07/2014, 04:20

10 323 0
Oracle SQL*Plus The Definitive Guide- P2 pptx

Oracle SQL*Plus The Definitive Guide- P2 pptx

... me: the SQL manual, the SQL* Plus manual, and the PL /SQL manual I remember the frustration of frequently picking up the wrong manual because I didn't understand clearly the relationship between these ... report You this by placing all the formatting commands and the SELECT query for the report into the script file Then whenever you want the report, you just execute the script In addition to producing ... such as PL /SQL or SQL* Loader There is also little information on using SQL* Plus to perform common tasks like viewing a constraint definition or extracting data I remember clearly the frustration...

Ngày tải lên: 05/07/2014, 04:20

10 471 0
Oracle SQL Plus The Definitive Guide- P3 ppsx

Oracle SQL Plus The Definitive Guide- P3 ppsx

... Database SQL* Plus is often used in conjunction with two other products, both of which have the letters SQL in their names The first is SQL itself Without a doubt, the most common use of SQL* Plus ... Introduction to SQL* Plus In this chapter: What Is SQL* Plus? History of SQL* Plus Why Master SQL* Plus? Creating and Loading the Sample Tables SQL* Plus is the command-line interface to the Oracle database ... Page There are chapters in this book covering each of the above topics in detail A lot can be accomplished with SQL* Plus This book will show you how SQL* Plus's Relation to SQL, PL /SQL and the...

Ngày tải lên: 05/07/2014, 04:20

10 580 0
Oracle SQL Plus The Definitive Guide- P4 pot

Oracle SQL Plus The Definitive Guide- P4 pot

... 4: Run the BLD_DB .SQL script file The next and final step is to run the BLD_DB .SQL script file, which is one of the files in the ZIP archive you downloaded in step To that, simply use the @ command ... the script files The SQL scripts to create the tables and data used for the examples in this book can be downloaded from O'Reilly & Associates' web site See the Preface for more information The ... files Start SQL* Plus Log into your Oracle database Run the BLD_DB .SQL script file The screenshots in the remainder of this section show you how things would look if you were creating the sample...

Ngày tải lên: 05/07/2014, 04:20

10 300 0
Oracle SQL Plus The Definitive Guide- P5 pptx

Oracle SQL Plus The Definitive Guide- P5 pptx

... expanded to show the SQL* Plus icon The Windows NT implementation is the same, except that the program group is named Oracle for Windows NT Select the SQL* Plus entry from the Start menu, and SQL* Plus ... seen how to start SQL* Plus, might be with the EXIT command The EXIT command terminates your SQL* Plus session, and either closes the SQL* Plus window (GUI version) or returns you to the operating system ... you will be for the examples in this chapter There are some other options and variations on the SQL* Plus command which are useful when you are executing SQL* Plus script files These are described...

Ngày tải lên: 05/07/2014, 04:20

10 383 0
Oracle SQL Plus The Definitive Guide- P6 pptx

Oracle SQL Plus The Definitive Guide- P6 pptx

... Oracle to update the help text to cover all the new functionality in SQL and PL /SQL in time for the 8i release Subsequent versions of SQL* Plus should reenable SQL and PL /SQL help The syntax for ... about the forward slash character later in this chapter because it's also used to execute the SQL statement, or PL /SQL block, currently in the SQL buffer The final option for terminating an SQL ... Introduction to SQL* Plus, you can use the DESCRIBE command to view their column definitions The following example shows how DESCRIBE is used to list the columns in the EMPLOYEE table: SQL> DESCRIBE...

Ngày tải lên: 05/07/2014, 04:20

10 345 0
Oracle SQL Plus The Definitive Guide- P7 ppsx

Oracle SQL Plus The Definitive Guide- P7 ppsx

... reflects the environment at the time SQL* Plus was first conceived The line-editing process in SQL* Plus follows these steps: You enter a SQL statement or PL /SQL block, which SQL* Plus stores in the ... in the buffer You then list the contents of the buffer to the screen You enter SQL* Plus commands that tell SQL* Plus to make changes to the statement in the buffer You list the buffer again If ... copy of the most recently entered SQL statement or PL /SQL block in an internal memory area known as the SQL buffer, often referred to simply as the buffer The reason for this is simple SQL* Plus...

Ngày tải lên: 05/07/2014, 04:20

10 338 0
Oracle SQL Plus The Definitive Guide- P8 pptx

Oracle SQL Plus The Definitive Guide- P8 pptx

... Tells SQL* Plus to add the contents of the buffer to an existing file The following example shows the SAVE command being used to save the contents of a rather long SQL query to a file First the ... you want to save the buffer The default extension is SQL, but you may specify another if you like CRE[ATE] Tells SQL* Plus that you want to create a new file The save will fail if the file you've ... name of the file containing the text you want to load into the buffer The default extension is SQL, but you may specify another if you like LIS[T] May be abbreviated to LIS, and tells SQL* Plus...

Ngày tải lên: 05/07/2014, 04:20

10 386 0
Oracle SQL Plus The Definitive Guide- P9 pptx

Oracle SQL Plus The Definitive Guide- P9 pptx

... to throw them away When you exit the editor, control returns to SQL* Plus The contents of the work file are loaded into the buffer and displayed on the screen for you to see You may then execute ... omitted Although SQL statements not require a trailing semicolon, a PL /SQL block does That's because the trailing semicolon is part of the PL /SQL syntax, but not part of the SQL syntax < previous ... NUMBER In the previous example, SQL* Plus has executed all three DESCRIBE commands contained in the DESCRIBE_ALL SQL file The output of each command is sent to the screen, but by default SQL* Plus...

Ngày tải lên: 05/07/2014, 04:20

10 393 0
Oracle SQL Plus The Definitive Guide- P11 pot

Oracle SQL Plus The Definitive Guide- P11 pot

... Variable Value SQL. PNO The current page number SQL. LNO The current line number SQL. RELEASE The current Oracle release SQL. SQLCODE The error code returned by the most recent SQL query SQL. USER The Oracle ... advances to the next page How SQL* Plus advances the page depends on the NEWPAGE setting Setting the page advance There are two methods SQL* Plus can use to advance the printer to a new page The first ... Executing the report If you've stored the script for the report in a text file, you can execute that file from the SQL* Plus prompt like this: SQL @c:\jonathan \sql_ plus_book\xd_ch_4\04_query_1_step_5.sql...

Ngày tải lên: 05/07/2014, 04:20

10 346 0
Oracle SQL Plus The Definitive Guide- P12 docx

Oracle SQL Plus The Definitive Guide- P12 docx

... and use them The NOPRINT clause is used to tell SQL* Plus not to include the employee name and ID columns in the report detail Modify the page heading to print the employee name and ID The next ... both the employee ID and name columns change at the same time, the page break could have been defined on either column In this case, the employee_id was chosen because it is the primary key for the ... that displays the value of one record in a heading and then lists the detail from related records below that heading The record shown in the heading is referred to as the master, and the records...

Ngày tải lên: 05/07/2014, 04:20

10 302 0
Oracle SQL Plus The Definitive Guide- P13 pps

Oracle SQL Plus The Definitive Guide- P13 pps

... Unlike the case with the page number, which SQL* Plus conveniently maintains in the SQL. PNO user variable, the date is not so easily available How then, you display the date in the page header? The ... in the ON clause, the keyword REPORT has been used This tells SQL* Plus to sum the data over the entire report Also notice that the LABEL clause has been used Normally the label would print in the ... column specified in the ON clause In cases like this where there is no ON column, SQL* Plus will place the labels in the first column of the report The next thing to is to modify the BREAK command...

Ngày tải lên: 05/07/2014, 04:20

10 342 0
Oracle SQL Plus The Definitive Guide- P14 pptx

Oracle SQL Plus The Definitive Guide- P14 pptx

... Page FORMAT 999 SQL. PNO The report footer, defined with the REPFOOTER command, will print on the last page, after the last detail record, to mark the end of the report Here is what the Project Hours ... FORMAT 999 SQL. PNO The addition of LEFT report_date to this BTITLE command causes the date to print left-justified on the same line as the page number When you execute the report, the page footer ... As you can see, the report title printed only on the first page of the report Subsequent pages began with the column titles The report footer printed on the last page, following the last detail...

Ngày tải lên: 05/07/2014, 04:20

10 307 0
Oracle SQL Plus The Definitive Guide- P15 pps

Oracle SQL Plus The Definitive Guide- P15 pps

... will be grouped together because they will all have the same constant Second, the value of the sort column controls the order in which the sections print Use a value of for the section to be printed ... variables are the workhorse of SQL* Plus scripts They give you a place to store user input, and they give you a way to use that input in SQL queries, PL/ SQL code blocks, and other SQL* Plus commands ... each category on the printed report so the end user knows what's what To be certain of getting all the records back from the query, use the UNION ALL operator to tie the queries together Using UNION...

Ngày tải lên: 05/07/2014, 04:20

10 331 0
Oracle SQL Plus The Definitive Guide- P16 potx

Oracle SQL Plus The Definitive Guide- P16 potx

... a table name, and the substitution was made, but the old and new versions of the command were not shown The remaining output from the script, showing the indexes defined on the project_ hours ... seeing the prompts for substitution variables used in the query Use the ACCEPT command to prompt for these values earlier in the script, before the SET TERMOUT OFF command is executed The default ... now whether the script uses &table_name or &&table_name for the substitution variable Either will work just as well, and the script just shown uses both When you run the script, here's how the prompt...

Ngày tải lên: 05/07/2014, 04:20

10 320 0
Oracle SQL Plus The Definitive Guide- P17 pps

Oracle SQL Plus The Definitive Guide- P17 pps

... SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> set echo on @C:\jonathan \sql_ plus_book\xe_ch_5\list_indexes_H SET HEADING OFF SET RECSEP OFF SET NEWPAGE SET FEEDBACK OFF SET VERIFY OFF PROMPT SQL> PROMPT ... page page_139 next page > Page 139 SQL> PROMPT SQL> SQL> Get the table name from the user SQL> ACCEPT table_name CHAR PROMPT Enter the table name > Enter the table name > As you can see, echoing ... prompt the user for this information The second is to decide which version of SQL* Plus you want to usethe GUI version or the DOS version Both of these decisions affect the command used by the shortcut...

Ngày tải lên: 05/07/2014, 04:20

10 317 0
Oracle SQL Plus The Definitive Guide- P18 doc

Oracle SQL Plus The Definitive Guide- P18 doc

... where the end of the variable name is not clear Consider the following code example: DEFINE sql_ type = PL/ PROMPT &sql_ typeSQL The intent is to have SQL* Plus print the text PL /SQL, but SQL* Plus ... place of &sql_ type Instead, it will interpret the entire string of &sql_ typeSQL as a variable You can get around this problem by using the SQL* Plus concatenation character The period is the default ... tells SQL* Plus where the variable name ends The following code example shows the concatenation character being used to make the substitution work as intended: SQL> DEFINE sql_ type = PL/ SQL> PROMPT...

Ngày tải lên: 05/07/2014, 04:20

10 282 0
Oracle SQL Plus The Definitive Guide- P19 pptx

Oracle SQL Plus The Definitive Guide- P19 pptx

... in the output is separated by one space, because that's the SQL* Plus default If you like, you can use the SET COLSEP command to change the number of spaces or eliminate them entirely To run the ... the output to C:\A\EMP_DATA.CSV, and SET TERMOUT OFF is used to disable the display while the data is being written to the file Here's how you run this script: SQL> @C\EMPLOYEE_EXTRACT SQL> The ... several tables together, or you can UNION several queries together Format the Data The next step, once you have your query worked out, is to format the data to be extracted The way to this is...

Ngày tải lên: 05/07/2014, 04:20

10 311 0
Oracle SQL Plus The Definitive Guide- P20 ppsx

Oracle SQL Plus The Definitive Guide- P20 ppsx

... of the above as one long SQL* Loader command The keywords LOAD DATA tell SQL* Loader to load data, and the rest of the command tells SQL* Loader where to get the data and how it is formatted The ... Tells SQL* Loader to read data from the file named emp_data.csv in the c:\a directory INTO TABLE employee Tells SQL* Loader to insert the data into the employee table owned by the current user SQL* Loader ... file called the control file When you run SQL* Loader, you tell it where the control file is Then SQL* Loader reads the control file and uses that information to interpret the data in the flat file...

Ngày tải lên: 05/07/2014, 04:20

10 336 0
Oracle SQL Plus The Definitive Guide- P21 ppt

Oracle SQL Plus The Definitive Guide- P21 ppt

... returns the following information for each argument: The datatype Whether it is an input, output, or both The default value, if there is one The order in which the arguments are listed is also the ... INITIAL_EXTENT The size, in bytes, of the initial extent for the table This is how much space is allocated when the table is first created NEXT_EXTENT The size, in bytes, of the next extent for the table The ... TEMPORARY Either Y or N, indicating whether or not the table is a temporary table NESTED Either YES or NO, indicating whether or not the table is a nested table BUFFER_POOL The name of the default...

Ngày tải lên: 05/07/2014, 04:20

10 317 0
w