changing the protection mode with sql plus

Oracle SQL*Plus The Definitive Guide- P1 docx

Oracle SQL*Plus The Definitive Guide- P1 docx

Ngày tải lên : 05/07/2014, 04:20
... 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 Queries Working with PL /SQL The SQL Buffer ... 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 ... 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 Directory Generating Reports with SQL* Plus...
  • 10
  • 323
  • 0
Oracle SQL*Plus The Definitive Guide- P2 pptx

Oracle SQL*Plus The Definitive Guide- P2 pptx

Ngày tải lên : 05/07/2014, 04:20
... the manual for SQL* Plus is no exception Oracle's manual will tell you about SQL* Plus, but only about SQL* Plus There is little information on how to use SQL* Plus in conjunction with other Oracle ... connected via SQL* Plus Chapter 10, Administration with SQL* Plus, covers the new administrative commands that have been added to SQL* Plus beginning with version 8.1 (available with Oracle8i) These commands ... in the SQL* Plus environment, with and without an external editor How to write simple scripts using SQL* Plus How to prompt for user input and use that input in SQL commands, PL /SQL blocks, and SQL* Plus...
  • 10
  • 471
  • 0
Oracle SQL Plus The Definitive Guide- P3 ppsx

Oracle SQL Plus The Definitive Guide- P3 ppsx

Ngày tải lên : 05/07/2014, 04:20
... 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 ... 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 ... 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...
  • 10
  • 580
  • 0
Oracle SQL Plus The Definitive Guide- P4 pot

Oracle SQL Plus The Definitive Guide- P4 pot

Ngày tải lên : 05/07/2014, 04:20
... titled Starting SQL* Plus in Chapter 2, Interacting with SQL* Plus Once you know how to start SQL* Plus, you can come back here and run the script to create the sample tables and fill them with data < ... 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 ... following these four steps: Download and unzip the script 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...
  • 10
  • 300
  • 0
Oracle SQL Plus The Definitive Guide- P5 pptx

Oracle SQL Plus The Definitive Guide- P5 pptx

Ngày tải lên : 05/07/2014, 04:20
... 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 ... see the Windows 95 Start menu expanded to show the SQL* Plus icon Figure 2-2 Windows 95 Start menu expanded to show the SQL* Plus icon The Windows NT implementation is the same, except that the ... system authentication Starting the GUI Version To start the GUI version, first find the icon Figure 2-1 shows the SQL* Plus icon for SQL* Plus version It looks like a blue disk drive topped with a...
  • 10
  • 383
  • 0
Oracle SQL Plus The Definitive Guide- P6 pptx

Oracle SQL Plus The Definitive Guide- P6 pptx

Ngày tải lên : 05/07/2014, 04:20
... Help The HELP command is used to get help on SQL statements, SQL* Plus commands, and PL /SQL commands SQL* Plus 8.1, released with Oracle8i, provides help only on SQL* Plus commands This is because there ... 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 ... of SQL* Plus version 8.0.4, there is a bug that keeps this from working You can enter CONNECT with the username as an argument, then enter the password when prompted, but SQL* Plus won't pass the...
  • 10
  • 345
  • 0
Oracle SQL Plus The Definitive Guide- P7 ppsx

Oracle SQL Plus The Definitive Guide- P7 ppsx

Ngày tải lên : 05/07/2014, 04:20
... 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 ... overwrite the buffer Commands to SQL* Plus, such as the editing commands, not affect the buffer There are some other useful things you can because of the buffer If you have several similar SQL statements...
  • 10
  • 338
  • 0
Oracle SQL Plus The Definitive Guide- P8 pptx

Oracle SQL Plus The Definitive Guide- P8 pptx

Ngày tải lên : 05/07/2014, 04:20
... 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 to...
  • 10
  • 386
  • 0
Oracle SQL Plus The Definitive Guide- P9 pptx

Oracle SQL Plus The Definitive Guide- P9 pptx

Ngày tải lên : 05/07/2014, 04:20
... run SQL* Plus under Windows Take a look at Figure 2-8 It shows the properties for the SQL* Plus menu item under Windows 95 Figure 2-8 The SQL* Plus shortcut properties under Windows 95 Notice the ... 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 ... 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 does...
  • 10
  • 393
  • 0
Oracle SQL Plus The Definitive Guide- P11 pot

Oracle SQL Plus The Definitive Guide- P11 pot

Ngày tải lên : 05/07/2014, 04:20
... 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 ... your footer, SQL* Plus prints the footer and 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 ... 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...
  • 10
  • 346
  • 0
Oracle SQL Plus The Definitive Guide- P12 docx

Oracle SQL Plus The Definitive Guide- P12 docx

Ngày tải lên : 05/07/2014, 04:20
... Issuing the BREAK command with no parameters causes SQL* Plus to display the current break setting column_name Specifies a report column to watch When the value in the column changes, SQL* Plus skips ... 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 ... 4, Writing SQL* Plus Scripts, talks about using these variables to facilitate user interaction with your SQL* Plus scripts Retrieve the employee information into user variables Use the COLUMN command...
  • 10
  • 302
  • 0
Oracle SQL Plus The Definitive Guide- P13 pps

Oracle SQL Plus The Definitive Guide- P13 pps

Ngày tải lên : 05/07/2014, 04:20
... 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...
  • 10
  • 342
  • 0
Oracle SQL Plus The Definitive Guide- P14 pptx

Oracle SQL Plus The Definitive Guide- P14 pptx

Ngày tải lên : 05/07/2014, 04:20
... 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 ... 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 ... 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...
  • 10
  • 307
  • 0
Oracle SQL Plus The Definitive Guide- P15 pps

Oracle SQL Plus The Definitive Guide- P15 pps

Ngày tải lên : 05/07/2014, 04:20
... 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 ... just give them a copy of the script A second reason for developing scripts is that they save time Look at the script to produce the first report in Chapter 3, Generating Reports with SQL* Plus It ... ph.project_id; The ampersand in front of the word employee_id marks it as a variable At runtime, when it reads the statement, SQL* Plus will see the substitution variable and replace it with the current...
  • 10
  • 331
  • 0
Oracle SQL Plus The Definitive Guide- P16 potx

Oracle SQL Plus The Definitive Guide- P16 potx

Ngày tải lên : 05/07/2014, 04:20
... terminal output is off by the time SQL* Plus reads the line containing the substitution variable SQL* Plus does not handle this situation too well You won't see a prompt for the substitution variable, ... and rely on SQL* Plus' s default prompting mechanisms All of these problems can be avoided through the use of the ACCEPT command Table 4-1 provides a list of these problems together with a description ... next page > Page 134 The syntax for the ACCEPT command has evolved significantly with the past few releases of SQL* Plus The syntax shown here is valid for version 8.1 Not all of the clauses are available...
  • 10
  • 320
  • 0
Oracle SQL Plus The Definitive Guide- P17 pps

Oracle SQL Plus The Definitive Guide- P17 pps

Ngày tải lên : 05/07/2014, 04:20
... for the case where you can hardcode the Oracle username in the shortcut, and for the case where you can't Starting the SQL* Plus executable The Windows version of Oracle contains two SQL* Plus ... Oracle has changed the naming convention used for the Windows and command-line implementations of SQL* Plus SQLPLUS.EXE runs the command-line version, while SQLPLUSW.EXE starts the GUI version Before ... run SQL* Plus will connect to Oracle with the username and password provided The second command supplies only a username, so SQL* Plus will prompt for the password, and then run your script The...
  • 10
  • 317
  • 0
Oracle SQL Plus The Definitive Guide- P18 doc

Oracle SQL Plus The Definitive Guide- P18 doc

Ngày tải lên : 05/07/2014, 04:20
... 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...
  • 10
  • 282
  • 0
Oracle SQL Plus The Definitive Guide- P19 pptx

Oracle SQL Plus The Definitive Guide- P19 pptx

Ngày tải lên : 05/07/2014, 04:20
... Limitations of SQL* Plus When using SQL* Plus to extract data, there are some limitations to keep in mind Because SQL* Plus was designed as a reporting tool and not a data extraction tool, the output ... or binary data, SQL* Plus is not the tool to use A second SQL* Plus limitation you may encounter when extracting data is the linesize This maximum output line supported by SQL* Plus varies from ... character The ASCII code uses the value to represent a tab character Fixed-width The easiest way to produce an output file with fixed-width columns is to use the SQL* Plus COLUMN command to format the...
  • 10
  • 311
  • 0
Oracle SQL Plus The Definitive Guide- P20 ppsx

Oracle SQL Plus The Definitive Guide- P20 ppsx

Ngày tải lên : 05/07/2014, 04:20
... 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 ... familiar with the SQL* Plus DESCRIBE command DESCRIBE may be used to get a list of columns in a table or view, together with their datatypes Beginning with Oracle8, DESCRIBE may also be used to see the ... 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...
  • 10
  • 336
  • 0
Oracle SQL Plus The Definitive Guide- P21 ppt

Oracle SQL Plus The Definitive Guide- P21 ppt

Ngày tải lên : 05/07/2014, 04:20
... 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...
  • 10
  • 317
  • 0