AWR's data consists of two main components:1 The system load and performance statistics stored in memory, mainly through the v$ view query;2 The Mmon process periodically saves in-memory awr data to the Sysaux tablespace in a snapshot (snapshot)
1, Telnet to the remote database server
Cmd>telnet The remote database IP
2, switch to the database users
Dqxxdbs01:/> su-oracle
3, access to the database with super users
$ sqlplus "/as sysdba"
4, check the parameters, whether you can use the job
Note the point:
1. If open in Pl/sql and other tools, directly modify the following code [Italic bold section] to perform
2. To ensure that the path exists, such as "D:\oracle\oradata\Oracle9i\" is the path you want to save the file exists
/* is
The more typical problems are: Sometimes, it indicates that Ming has indexed, but the query process obviously did not use the relevant index, resulting in a lengthy query process, a huge resource, the problem in the end is where? Search in the
?
Class Db_sql {
var $Debug = false;
var $Home = "/u01/app/oracle/product/8.0.4";
var $Remote = 1;
/* This Query is sent directly after the ' the '
Example:
var $ConnectQuery = "ALTER session SET Nls_date_language=german nls_date_format= ' DD." Mm.
This example describes the Oracle paging function implemented by PHP. Share to everyone for your reference, specific as follows:
MySQL has limit, paging time, we can use limit 30, 40, and Oracle has no limit, in other ways to replace--rownum.
Oracle typically uses sequences (Sequence) to process primary key fields, while MySQL provides a increment for similar purposes;
But in the actual use of the process found that MySQL's self growth has a lot of drawbacks: can not control the step,
1.1.1. RMAN-08138
Date: 2014-05-21 14:36
Environment: Test environment
"Story description"
On the tester, when you use Rman to delete the archive log file, you are prompted to warning the warning and the archive log cannot be deleted.
"Error
Original library to determine data files, log files, tempfile file information
Select Group#,status,type, member from V$logfile;
Col name format A65
Select file#,name,bytes/1024/1024 MB from V$datafile;
Select name from V$controlfile;
1. Create
1. Keep for seven days
This is the only way to keep backups for seven days
Rman> Connect target/
Connected to target Database:dbsid (dbid=3100778490)
Rman> Configure retention Policy to recovery windows of 7 days;
2. Backup Scripts
Tag:ural no operator use specify Caveats Limitations type csharp The connections between Oracle tables are divided into three types: 1. Internal connection (natural connection) 2. Outer JOIN (1) LEFT outer join (No
1. Create a new table, set the ID as the primary keyFor example, the table name created is: Uf_receive_pay2. Set the ID of the primary key self-increment, through the sequence implementationCreate sequenceCREATE SEQUENCE Uf_receive_pay_seqINCREMENT
Sql> drop tablespace EXAMPLE including contents and datafiles;Drop tablespace EXAMPLE including contents and datafiles*ERROR at line 1:Ora-29857:domain indexes and/or secondary objects exist in the tablespace- -- Tips: ORA-29857: table space exists
Assumption: You need to connect to Db_b from database db_a through Db_link to query database B for part of the relevant informationPrerequisites:Database a account requires permission to create Dblink if no DBA account can be used to assign
Syntax for adding a field: ALTER TABLE tablename Add (column datatype [default value][null/not null],....);Modify the syntax of the field: ALTER TABLE tablename modify (column datatype [default value][null/not null],....);Syntax for deleting a field:
A system environment:1. Operating system: Oracle Linux 5.62, database: Oracle 11g two Oracle redo log: [Simulated media recovery]1. Turn off database archiving mode: [[email protected] ~]$ sqlplus/nologsql*plus:release 11.2.0.1.0 Production on Mon
--View the use/remaining space of temporary filesSql> select * from V$temp_space_header;--View the temporary tablespace to which the Scott user belongsSql> Select Username, temporary_tablespace from dba_userswhere username= ' SCOTT '; --See which
When the database was created, a password was already set for 4 accounts such as SYS, where SYS and system had administrator privileges to log into the Oracle database using the SYSTEM account in the Sql*plus tool.1, through the data dictionary
--View Current User select Username from dba_users;--Creating a temporary create USER GZMPC identified by PASSWORD;--authorizing Grant CREATE SESSION to GZMPC; CREATE tablespace gzmoc_wk datafile'Gzmoc_wk.dat'SIZE 10M autoextend on; CREATE temporary
1. Take the Windows operating system as an example, open a command prompt, enter the command sqlplus/nolog, enter the Oracle console, enter Conn/as sysdba, and enter in the DBA role.2. After the connection is successful, enter "Select username 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