First, set feedback onBy default, Oracle gives a feedback when a SQL is issued.For example, execute the following CREATE TABLE statement:CREATE TABLE t_test_lll (ID varchar2 (10));The Command Guild returns: Table created.For example, when performing
Select table_name from User_tables; The current user's tableSelect table_name from All_tables; All users ' tablesSelect table_name from Dba_tables; including system tablesSelect table_name from dba_tables where owner= ' user name
field type modification for existing data in Oracle //Build TableCREATE TABLE T_person (ID varchar2 (primary) key, name VARCHAR2 ($), address VARCHAR2 (200)); Inserting dataInsert into T_person (id,name,address) VALUES (Sys_guid (), ' Zhangsan ', '
----Create a new service, Pmon will automatically (dynamically) register to Tnslsnr after creation, the service created is not permanent and will be lost after the database restarts.To persist requires the use of ALTER system set service_names= ' xx
Alter ANY cluster permission to modify any clusterAlter any index to modify permissions on arbitrary indexesAlter any role to modify permissions for arbitrary rolesAlter ANY SEQUENCE permission to modify any sequenceAlter any snapshot permissions to
The first thing to look at is whether your Oracle optimizer is using RBO or CBO,(1) If Rbo is used, it will be carried out in the order of the rules.(2) If you are using a CBO, you can modify it using the Hint method.Syntax:SELECT/*+ Index (table
A package is a collection of procedures and functions, including the creation of packages and the creation of packages, and the process and functions that can be defined in the package body when the package is created.eg--Create a packageCreate or
1. In Oracle, the stored procedure consists of three parts: the definition section, the execution section, and the Exception handling section (that is, the exception)EG1: Enter the employee number to inquire about the employee's name and
Enter the system,Enter the system, # su Oracle $cd $ORACLE _home $./sqlplus/nolog >connect/as sysdba; >show parameter SGA; (View memory usage) NAME TYPE VALUE --------------------------
Syntax:InStr (Fatherstr, Sonstr [, Start_position [, Matchtimes]])Fatherstr: The parent string where to find the substring in this string.SONSTR: The string to find in Fatherstr.Start_position: Represents the starting position of the search from
>exp-help>imp-helpData dictionary table: dba_data_files: Data File TableTo view the data file name and the name of the table space to which it belongs:Set display length per line: Set Linesize 300;Set the number of columns to display per page: set
Backup Requirements and Rman backupOracle database Backup related questions and answers:1) What is the state of the database at the time of backup?The database is in the open state when you back up so that the database works correctly.2) where is
Check the salary of each department in 25%, 50%, 75% position,Percent_rank () is the relative position in the ranking .CREATE TABLE EMP(EMPNO Number (4) is not NULL,Ename VARCHAR2 (10),JOB VARCHAR2 (9),MGR Number (4),HireDate DATE,SAL number
Use dbms_service to manage oracle services (Single Instance)
---- Create a new service. After the service is created, pmon automatically (dynamically) registers to tnslsnr. The service created is not permanent and will be lost after the database is
About the mongolerman archive deletion policyRMAN> show all;Configure archivelog deletion policy to none;
By default, the archive deletion policy is not configured in oracle10g 11g;
In this case, how does one Delete archive logs that have not been
Oracle locks the temporary table statistics and whether the hint can be dynamically collected after the lock
The statistical information of the global temporary table cannot be collected. If it is collected, its statistical information must be 0,
Deferred_segment_creation of the 11g Parameter
Deferred_segment_creation
Boolean
The default value is true.
This parameter is not found in 10gR2, and is available in 11g.
It can also be seen from the literal meaning that when this parameter is set
ORA-12520 error solved one
Problem description:
An error was reported when I suddenly found a connection to the database today. When I use pl/SQL dev to connect to data, sometimes I can connect to the database. Sometimes I can report the following
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