1, first of all, the use of rownumRowNum: A pseudo column added to the result set, that is, the result set followed by a column (emphasis: first to have the result set), simply say RowNum is the match to the conditional result of the serial number.
1. View All Users:
SELECT * from Dba_users;
SELECT * from All_users;
SELECT * from User_users;
2. View user or role system permissions (directly assigned to user or role system permissions): SELECT * from Dba_sys_privs;SELECT * from
SELECT * from Com_parameter (table name) as of timestamp to_timestamp (' 2015-08-03 9:00:00 ', ' yyyy-mm-dd HH24:MI:SS ')
This SQL statement is the table data that is used to find the point at which a table is in a particular feature. If you
use of the To_char () function in Oracle
Ext: http://blog.csdn.net/jiangnan2014/article/details/16908585
(1) As Date conversion:
to_char (date, ' format ');
Select To_date (' 2005-01-01 ', ' YYYY-MM-DD ') from dual;
Select To_char (sysdate, ' Yyyy-
Such as:
Cursor C_columns (t_table_name varchar) is select column_name from user_tab_columns WHERE table_name = T_table_name Order b Y table_name,column_id;
V_txt1:= ';For V_col in C_columns (V_tablename) loop--use a For loop to traverse cursor
Select a row in a table: (Understanding: RowNum is an Oracle system order is assigned the number of rows returned from a query)SELECT * FROM (select RowNum a,t.* from Testtab t) where a=2;Cannot be:SELECT * FROM (select rownum,t.* from Testtab t)
1. Temporarily modify by using functions, such as:
Select To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual;
2. Modify the date format of the current session:
Alter session set nls_date_format= ' Yyyy-mm-dd HH24:MI:SS ';
3. Permanent
The size of the file supported by Oracle and the number of his db_block_size and Db_block are determined. Prior to Oracle 9i, Oracle had a maximum of 2 db_block, while the db_block_size of the database instance we built through the Oracle default
Create table user ( id number (3), USERNAMEVARCHAR2 (PASSWORDVARCHAR2), Cid number (3), sex varcher (4)); Create table card ( id number (3), name VARCHAR2 (10)); --Add primary key
At first I tried to import the export in the Pl/sql, but I couldn't find the exp.exe for this class execution file. May be because my pl/sql is the release or what the concern, and then I try to use CMD Export, import, successful
A table if the amount of data is very large, if the table is not indexed, then any records in this table can only be scanned sequentially, which results in a large amount of IO input output, thus reducing execution efficiency. To speed up the query,
Oracle RAC 10.2.0.1 upgrade 10.2.0.5
1. The upgrade package for CRS and RDBMS is a, upgrade CRS first, upgrade the RDBMS, and finally upgrade the library
2, the most authoritative document in, 10205 of the patch, there is a readme.
tip ora-28000:the the account is locked
and
hint ORA-00922: Option missing or invalid
The domain itself has password requirements, Windows 7 also has password requirements, Oracle also has password requirements. And Oracle's requirements are the
First Kind
Ora-28000:the account is lockedThe first step: the use of Pl/sql, login name System, the database name unchanged, select the type of time to modify the normal to SYSDBA;The second step: Select MyObject, view users;The third step: select
What is ORACLE
Oracle database system is one of the most popular database of client/server (client/server) or b/s architecture, which is provided by Oracle Corporation (Oracle), a group of software products based on distributed database.
ORACLE
Recently, customers have proposed the use of Plsql developer tools in the application of the system, the database is frequently automatically disconnected, is not used in the case (at intervals) of the anomaly, but also a strange image, that is,
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.