Restart Oracle databases and listeners under Linux:
Method 1:
Log on to Linux with root, open the terminal and enter the following command:
CD $ORACLE _home #进入到oracle的安装目录
Dbstart #重启服务器
Lsnrctl Start #重启监听器
CD $ORACLE _home #进入到oracle的安装目录
1, su–oracle is not necessary, suitable for use without DBA password, you can enter the Sqlplus interface without password.
2, Sqlplus/nolog or Sqlplus system/manager or./sqlplus system/manager@ora9i;
3, Sql>connect/as sysdba; (as Sysoper)
In general, there is not much chance of using bulk fetch, but Oracle provides this functionality we'd better get familiar with it and maybe when it will be used.
Copy Code code as follows:
Declare
Cursor C1 is select * from
We all know that before 9i, it would be a hassle to get the statements to build tables and indexes. We can come here through the export with Rows=no, but its output is not directly available because of the format problem. Another approach is to
The example in this article describes how Oracle implements multiple-line consolidation. Share to everyone for your reference. The specific analysis is as follows:
When writing SQL, there is often a combination of fields for a column, such as
1, USERENV (OPTION)returns the current session information.Option= ' Isdba ' is true if it is currently a DBA role, or false.option= ' LANGUAGE ' returns the character set of the database.Option= ' SESSIONID ' is the current session
Oracle a large business SQL often does not know where to run, you can use the following SQL to view the progress of execution.
Copy Code code as follows:
Set Linesize 400;
Set pagesize 400;
Col sql_text format A100;
Col opname
User A deletes, but does not commit.
Copy Code code as follows:
sql> Delete from test where object_id
8 rows have been deleted.
User B performs a deletion or updates a id
Copy Code code as follows:
sql>
The Oracle tutorial being looked at is Oracle's method of establishing binary file indexes. Oracle text is Oracle's Full-text search technology and is part of the standard and Enterprise editions of the 9i edition. Oracle text uses standard SQL
CREATE OR REPLACE PROCEDURE PROC6338196642095312503719 (Enter the news subject VARCHAR2, enter the news content Varchar2, enter the publication time Varchar2, enter the current page number, Enter the number of rows per page, output the current page
Oracle processes and Functions I'm sure you all know better, so here's a detailed description of the difference between the Oracle process and the function, so you can have a deeper understanding of Oracle processes and functions.
Oracle procedures
When Oracle database user's password contains special character Furu @, use normal password input directly, because Oracle resolves the character after @ to the network service name and causes the login to fail
The following demo user name is: Wang
When executing a SQL query, in order to obtain the satisfied data, the query completes the parsing, binding, executing and extracting data in the process, such steps are performed separately, and the data rows that meet the conditions must be
Many friends who use other databases often make habitual mistakes when they go to Oracle databases, and this article summarizes some common Oracle code errors for everyone to compare.
1. INSERT statement written:
INSERT into T1 values (...)
First, create a stored procedure Get_clob:
T_name: The name of the table to query, F_name: The name of the field to query, u_id: The primary key of the table, the query condition, L_pos: The beginning position of the interception; L_amount:
1, see what users in the database?
Select username from all_users;
2. See which DBA users are in the database?
Select username from dba_users;
3. See what tables The current user owns?
Select table_name from User_tables;
4, Oracle New table
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