Lock_id2 from V$lock L, SYS. Dba_objects O, v$session S WHERE l.sid
= S.sid and l.id1 = o.object_id;
30. How to Unlock
ALTER SYSTEM KILL session ' sid,serir# ';
How to modify the editor under Sqlplus
DEFINE _editor= "< Editor's full path >"--Must add dual quotes
To define a new editor, you can also write this in $oracle_home/sqlplus/admin/glogin.sql to make it permanent.
The Oracle product random function is
Dbms_random. RANDOM
Under Linux, check out the magnetic competition situation command
Sar-d
CPU competitive status commands under Linux
Sar-r
34. Consult the former user image
SELECT * from User_objects;
SELECT * from Dba_segments;
35. How to obtain error information
SELECT * from User_errors;
36. How to obtain a link
SELECT * from Dba_db_links;
37. View data in library characters
SELECT * from Nls_database_parameters;
SELECT * from V$nls_parameters;
38. Check the table space information
SELECT * from Dba_data_files;
Oracle's interal user to password
Modify Sqlnet. ORA
Sqlnet. Authentication_services= (NTS)
40. The solution of the JAVA.EXE
It's usually a oracleorahomexihttpserver change to manual activation.
X is 8 or 9
41. How to add to the table and column?
Sql>comment on table are ' table annotations ';
The note has been created.
Sql>comment on column table. Column is ' column annotation ';
The note has been created.
Sql> SELECT * from user_tab_comments where comments isn't null;
42. How do I look at the space occupied by each table?
sql> Col tablespace format A20
Sql> Select
b.file_id file ID number,
B.tablespace_name table space Name,
B.bytes the number of bits,
(B.bytes-sum (NVL (a.bytes,0))) has been used,
Sum (NVL (a.bytes,0)) The remainder of the space,
Sum (NVL (a.bytes,0))/(b.bytes) *100 remainder percent
From Dba_free_space A,dba_data_files b
where a.file_id=b.file_id
GROUP BY B.tablespace_name,b.file_id,b.bytes
ORDER BY b.file_id
43. What if Oracle is designed to be MTS or a dedicated mode?
#dispatchers = "(protocol=tcp) (SERVICE=SIDXDB)"
Plus is MTS, which is a specialized mode, and Sid refers to your actual example name.
44. How to know the system's pre-SCN
Select Max (KTUXESCNW * Power (2) + KTUXESCNB) from X$ktuxe;
45. Please ask how to take milliseconds in Oracle
9i is not supported, 9i starts with timestamp.
9i can be used with select Systimestamp from dual;
There are a lot of things that you might see when you're using Oracle, especially for starters, today I'm simply going to wrap it up and give it to everyone,
I hope we can help! And we explore together, together to move!
It is not necessary for Oracle masters to be seen.
46. How to add a car back to the string?
Select ' Welcome to visit ' | | Chr (10) | | Www.CSDN.NET ' from dual;
47. How are the Chinese sorted?
Before the oracle9i, Chinese is sorted according to the binary encoding.
In Oracle9i, we have added the sorting function according to pinyin, radical and pen. Set Nls_sort value
Schinese_radical_m is sorted by radical (first order), stroke (second order)
Schinese_stroke_m according to the pen plan (first order), radical (second order) Order
Schinese_pinyin_m sorted by Pinyin
Can the object name in Oracle8i be in Chinese?
OK
49. How do I change the sql*plus activate option in Win?
Sql*plus's own preferences we can set in $oracle_home/sqlplus/admin/glogin.sql.
50. How to modify the default date of the Oracel data library
Alter session set nls_date_format= ' Yyyymmddhh24miss ';
OR
You can add a row to the Init.ora
nls_date_format= ' Yyyymmddhh24miss '
51. How to put a small table into the Keep pool
ALTER TABLE XXX storage (buffer_pool keep);
52. How to check if a patch has been installed
Check that Orainventory
53. How to make a select sentence make the search results automatically generate sequence numbers
Select Rownum,col from table;
54. How to know the tablespace of a table in a data pant
Select Tablespace_name from User_tables where table_name= ' TEST ';
There is a tablespace_name in the select * from User_tables, (Oracle);
SELECT * from Dba_segments where ...;
55. How can I quickly make a backup table like the original table
CREATE TABLE new_table as (SELECT * from old_table);
55. How to modify the procedure under Sqlplus
Select Line,trim (text) t from User_source where name = ' an ' ORDER by
Line
56. How to remove procedure was accidentally locked
Alter system kill session, kill that session, but you have to find out her session ID first.
Or
It's OK to change the name of the process again.
What is SQL reference?
is a copy of the SQL manual, including languages, functions, and so on, Oracle official website of the document center is downloaded.
58. How to view the state of the data library
Under Unix
Ps-ef | grep ora
Under Windows
See if the service is up
Is it possible to connect to the data library
59. Please ask how to modify the primary key of a table
ALTER TABLE AAA
Drop constraint Aaa_key;
ALTER TABLE AAA
Add constraint Aaa_key primary key (A1,B1);
60. Change the size of the data file
With ALTER DATABASE .... DataFile ...;
Manually changing the size of the data file has no damage to the original data file.
61. How do I see what programs are running in Oracle?
View V$sessions Table
62. How can I see how many tablespace are in the library?
SELECT * from Dba_tablespaces;
63. How do I modify the Oracle data library's user connections?
Modify the Initsid.ora to increase the process and restart the data library.
64. How to find the last update of a record
You can use Logminer to see
65. How to read and write documents in Pl/sql?
Utl_file package allows the user to read and write the operating system files through Pl/sql.
66. How do I put "&" in a record?
Insert into a values (translate (' at{&}t ', ' at{} ', ' at '));
How does EXP add query parameters?
EXP user/pass file=a.dmp TABLES (BSEMPMS)
Query= ' "WHERE emp_no=\ ' s09394\ '";
68. About oracle8i support for simple and complex character sets problems?
ZHS16GBK can support
What software is the Data guard?
is standby's replacement product.
70. How to create SPFile
Sql> Connect/as SYSDBA
Sql> select * from V$version;
Sql> create Pfile from SPFile;
Sql> CREATE SPFILE from
pfile= ' E:\ora9i\admin\eygle\pfile\init.ora ';
The file has been created.
sql> CREATE spfile= ' E:\ora9i\database pfileeygle. ORA ' from
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