Use the sqlplus command line tool to create users and tablespaces for oracle, sqlplusoracle
Creating tablespaces and users and assigning permissions using the Enterprise Manager or PL/SQL graphical method that comes with Oracle10g is relatively simple. This article will introduce another method, use the command line tool of Oracle 9i: SQLPLUS
To create a tablespace. This method is more concise and convenien
Sqlplus Problems in Interactive interface
Two non-interactive ways to use Sqlplus
1 via external command file
2 via standard input
Using pipelines for follow-up treatment
Places to be aware of
A simple script
1 Sqlplus problems with interactive interfaceSqlplus is the most important official command-line client software
]@connect_identifierCopies data from a query to a table in a local or remote database. COPY supports the following datatypes:CHARDATELONGNUMBERVARCHAR2Example:copy from user1/password1@source_instance to user2/password2@dest_instance create emp2 using select * from emp;
The preceding Command copies the emp data from source_instance to the emp2 table in dest_instance. For database replication, you can also use the Copy command, Example:
Copy from sco
Sqlplus Application Example 1. export the queried data in sqlplus> set pagesize 0 set newpage none set trimout on set trimspool on spool/tmp/outfile. log select * from table; spool off 2. sqlplus cannot use Up on the keypad, Down to list used historical commands (like mysql), nor can it use left or right to move the cu
In addition to providing various permissions at the database level to control security, Oracle provides a special control method for the Sqlplus tool.
When a general database is created, DBCA automatically loads the $oracle_home/sqlplus/admin/pupbld.sql script under the system user to create Sqlplus_product_profile tables, if the table is not created, The alarm will appear when the normal user logs in. Thi
In Sqlplus, if there is no up-and-down tool, Sqlplus cannot scroll up the history command like a Linux terminal, but Sqlplus records the most recent line of DML statements into buffer, and we can use some simple commands to view, modify,Execute the statement recorded in buffer as follows: L[ist] [n] View buf in Sql:del [n] Remove a row in buf sql:cl[ear] buff[er]
The ultimate solution to Sqlplus/as sysdba newspaper ora-12560 under WindowsWindows, Sqlplus/as SYSDBA often reported Ora-12560:tns:protocol adapter error, to resolve this error, there are several methods:1. Verify that the Oracle_home key and its key values in the Windows registry are correct and validFor example: Hkey_local_machine\software\oracle\key_oradb10g_
Troubleshooting of Logon failures when su switches to sqlplus in Oracle, oraclesqlplusProblem description:The oracle database in the production environment suddenly fails to log on, and the oracle database in the rlwrap production environment suddenly fails to log on. rlwrap sqlplus "/as sysdba" reports the following error: rlwrap[Oracle @ localhost root] $ rlwrap sqlpl
1. Brief Introduction:
Oracle's Sql*plus is a client tool that interacts with Oracle. In Sqlplus, you can run the Sqlplus command and the Sqlplus statement, and the DML, DDL, and DCL statements that we normally refer to are sqlplus statements that, when executed, can be stored in a memory area called SQL buffer. And c
Sqlplus is a very concise management tool developed by Oracle, and Sqlplus is the best and most core Oracle management tool. Sqlplus is simple and efficient, giving up flashy, anti-basics. Using Sqlplus, go to Sqlplus and do a simple operation to familiarize yourself with th
Enable autotrace in sqlplus and check the execution plan. So far, DBA users are first granted the plustrace role, and then we can authorize plustrace to public. If
Enable autotrace in sqlplus and check the execution plan. So far, DBA users are first granted the plustrace role, and then we can authorize plustrace to public. If
1. How to enable the autotrace function of
SQL statements reflect the language habits of English. For example, when we use select to query "Select fields from table", we first enter the field name and then the table name. This is in line with the English habit, that is, the first small location, then the Earth Point. If you use Chinese language habits to describe it, it should be "Fetch field from table: Select Table get fields ". So what are the advantages of adopting Chinese habits? Think ab
Tags: War network SERVICE pad TNS is pat too apt htmSource: https://www.2cto.com/database/201407/321055.htmlWindows, Sqlplus/as SYSDBA often reported Ora-12560:tns:protocol adapter error, to resolve this error, there are several methods:1. Verify that the Oracle_home key and its key values in the Windows registry are correct and validFor example: Hkey_local_machine\software\oracle\key_oradb10g_home1, find t
Label:Sqlplus Connecting a remote database Zhou__zhou **************sqlplus connecting a remote database system **********************Mode one: Simple connection, without network configuration, is actually Tnsname.ora file, but only support oracle10g above.Command: Sqlplus user name/password @ip address [: Port]/service_name [as SYSDBA]Example:
Today, a strange problem has been found that the SRVCTL and Crs_start commands cannot start an Oracle RAC instance, but with Sqlplus it can start normally. The final reason for this is that the state of the database becomes disable in OCR, and this state is changed to enable after it returns to normal. The following is a simulation example: [emailprotected]:~ $> crs_stat-tname Type Target State Host--------
In many cases, Oraclehang causes sqlplus to be unable to connect, and thus the Oracle system and process status cannot be obtained, which leads to a lack of a strong foundation for problem locating. Fortunately, Orac
In many cases, Oracle hang causes sqlplus to be unable to connect, and thus the Oracle system and process status cannot be obtained, which leads to a lack of a strong foundation for locating th
Once the oracle database is successfully installed, the related database information is displayed: Global Database Name: oracleSystem identifier (SID): oracleServer parameter file name: c: \ oracle \ product \ 10.2.0 \ db_1/dbs/spfileoracle. oraDatabase Control URL: http: // 210.45.216.146: 1158/emDatabase account: SYS, SYSTEM, DBSNMP, SYSMANPassword: oracleThe iSQL * Plus URL is:Http:/// 210.45.216.146: 5561/isqlplusThe iSQL * Plus dba url is:Http:/// 210.45.216.146: 5561/isqlplus/dbaView the C
SALARY------------------------------ -- --------- ----------Corey MA 01-jan-01 20000Calisi NJ 10-jun-01 30000The SELECT statement consists of five parts:Select (must) give the retrieved column;From (must) give the source of the data (name of one or more Oracle tables);where (optional) set conditions;Group BY (optional) summary data;Order BY (optional) sort data.Retrieving the data will inevitably involve formatting the output, sqlplus using the colum
Custom sqlplus sqlprompt after logon creates a login under any directory. SQL example: www.2cto.com E: \ oracle-study input content: define _ editor = sublime_textset serveroutput on size 1000000 set trimspool onset long 5000 set linesize 100 set pagesize 9999 column partition format a80 set time on set termout off column propmt_q new_value propmt_qselect upper (user) | '@' | instance_name | '(' | host_name
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.