This xmanager is killing me. I finally completed the configuration today and shared my experience with you. There are a lot of nonsense on the Internet. I am absolutely original and successful.
1. Check the startup level. The command is as follows:
Select * From session_privsIn sqlplus, you can view all permissions of the current user,
Check if it is DBASelect userenv ('isdba ') from dual;
View the current schema and user:
Select sys_context ('userenv', 'current _ user ')As CURRENT_USERFrom
Record in table: user_constraints
Select
A. Owner,
--
Primary Key owner
A. table_name,
--
Primary Key table
B. column_name,
--
Primary Key Column
C. Owner,
--
Foreign key owner
C. table_name,
--
How can I execute SQL statements in PLSQL stored procedures?
Use dynamic SQL Execution:Execute immediate
Table Information
Select * FromEmp_temp;
Stored Procedure
Create Or Replace Procedure F_delete_rows (
The Oracle database provides several different methods for starting and disabling databases. This article describes the differences between these methods and their respective functions. 1. Start and close the Oracle database For most Oracle DBAs,
Select B. table_name primary key table name, B. column_name primary key column name, A. table_name foreign key table name, A. column_name foreign key column name From ( Select A. constraint_name, B. table_name, B. column_name, A.
Differences between startup and shutdown methods in Oracle
The Oracle database provides several different methods for starting and disabling databases. This article will detail the differences between these methods and their respective functions.
Use Oracle Database 10GThe flash back table feature in allows you to easily restore accidentally deleted tables.
The following is a situation that should not happen frequently: the user deleted a very important table.-Of course, it was
Oracle 8.1.6 for win2000 system file explanation
System Environment:
1. Operating System: Windows 2000
2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition
3.
Use of the start with... connect by prior clause in OracleConnect by is used in structured queries. Its basic syntax is:Select... from tablename start with condition 1Connect by condition 2Where Condition 3;
Example:
Select * from tableStart
InOracleThe command and object names are case-insensitive, becauseOracleWhen processing a statement, convert all the names and commands into uppercase letters.
However, the characters in a string, whether compared or sorted, are case sensitive.
Guidance:
A few days ago, we used the package to complete the streams configuration. However, it would be more intuitive to use the OEM in management. Of course, it would be almost the same if we knew all the related packages. In 9i OEM, it seems
-- Concatenates values of different columns into a string using the concatenation operator "|" or Concat ('',''). -- Method 1: select s is recommended. team | '**' | S. name | '**' | S. job_number from staff s where S. pass = '000000' and S. TEAM = '
Question 1:Which process is responsible for hard parsing?In addition to low hit rate, what are the other causes of unreasonable Shared Pool settings?
When it comes to soft parsing and hard parsingOraclePairSQL. When you issue an SQL statement
Select * from employees EMP where EMP. Salary = 3000
If statement
Begin
If (10> 50) then
Dbms_output.put_line ('da Yu ');
Else
Dbms_output.put_line ('Bu Da Yu ');
End if;
End;
Select * from employees EMP where EMP. employee_id = 119
Where
EMP.
1. select an appropriate Oracle optimizer
There are three optimizer types in Oracle:
1. Rule (Rule-based) 2. Cost (cost-based) 3. Choose (selectivity)
Set the default optimizer. various declarations of the optimizer_mode parameter in the ora file,
Spool outputs all the output on the screen to the specified file-- Spool file path name; spool G: \ mysql. SQL; -- business operation -- end output spool off;
Execute an SQL script fileWe can save multiple SQL statements in a text file, so that when
1. Oracle has no database Concept
Therefore, we can use user as a substitute for the database.
For example, our previous SQL statement is
Select AA, BB, CC from librarya. tablea
Now, we create a user named librarya
Then we use this user to
Simple development of PL/SQL stored procedures
Paging of stored procedure using dynamic SQL
procedure proc_goods_search_count(p_type number, p_keywords varchar2, p_number out
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