to facilitate learning and testing, all examples are created under Oracle's own user Scott.
The SELECT statement in Oracle can use the start with ... connect by prior ... clause to implement recursive query, connect by is used in structured
1, the first need to confirm a few things, the original database username, password, table space name and user role.
2, export the data in the table. Use the Plsql Export table feature.
In fact, the use of oracle/product/10.1.0/db_1/bin/exp. Exe.
Oracle9i introduces the merge command, which enables you to perform both inserts and U on a table in an SQL statement
PDA
tes operation. The merge command selects rows from one or more data sources to upd
ATI
ng or inserting to one or more
The 3 files Listener.ora, Tnsnames.ora, and Sqlnet.ora are the 3 primary files for the configuration of the Oracle network, where Listener.ora is associated with the database server side, and Tnsnames.ora and Sqlnet.ora these 2 files are not only
Reference Document: Http://www.cnblogs.com/eshizhan/archive/2012/04/06/2435493.html
--NVL function
-NVL (string1, replace_with) function: If string1 is null, the NVL function returns the Replace_with value, otherwise the string1 value is returned.
In general, the Oracle server is the one that holds the database. That is, the Oracle server is to some extent equivalent to an Oracle database. The client is used by users who do not install the server. For example, I don't have an Oracle database,
Summary
Use the DELETE statement to delete data from the table.
Basic routines
DELETE [from] table
[WHERE condition];
Basic ApplicationUse the WHERE clause to specify the deleted record.
DELETE from Departments
WHERE department_name = '
ORA-12505, Tns:listener does not currently know the SID given in Connect Desc.
One, the correct link string
"Data source= (description= address= (protocol=tcp) (host=192.168.1.100) (port=1521)) (Connect_data= (SID=ORACLE))); User Id=system; Password=
First, the phenomenon of database deadlockProgram in the process of execution, click OK or save the button, the program is not responding, there is no error.Second, the principle of deadlockWhen you perform an update or delete operation on a column
1. Create user
Sql> Create user Jack identified by Jack;
2. Change Password
Sql> alter user Jack identified by Rose;
3. Authorized users
Sql> Grant Dba,resource,connect to Jack;
4. Permission to receive
Sql> revoke DBA from Jack;
5. Lock
1, with the DBA role of the user login, to unlock, set the specific time format in order to view the specific time
Sql> alter session set nls_date_format= ' Yyyy-mm-dd hh24:mi:ss ';
Session altered.
2, to see the specific time locked
Sql> Select
Two simple row and column transpose1, the row and column conversion of fixed numberSuch asStudent Subject Grade--------- ---------- --------Student1 Language 80Student1 Math 70Student1 English 60Student2 Language 90Student2 Math 80Student2 English 10
rownum: According to the result set of SQL query to assign a logical number for each row, can change dynamically, according to the SQL of each query changes to renumber, each is starting from 1 automatic arranging;
Rowid: When the data is produced
1 View database locks, diagnose the source and type of locks
Select Object_id,session_id,locked_mode from V$locked_object;or use the following command:Select B.owner,b.object_name,l.session_id,l.locked_modeFrom V$locked_object L, dba_objects bwhere
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service