PHPProgramThe stored procedure can be used to access the database. Some people think that the stored procedure is easy to maintain.However, the wise man sees wisdom. On this issue, I think that using stored procedures means that dBA and developers
If you need to reprint it, please indicate the source. Thank you!
Take 8.1.7.4.0 as an example:
8: Version Number
1: new feature version
7: maintenance version number
4: General patch setup number
0: Special platform patch number
In
//--------------------------------
// Work functions
//--------------------------------
// Read records// Main working function, which reads the corresponding records from the table based on the given conditions// The returned value is a
1. When creating a database, catproc must be run; otherwise, the following character set errors may occur when using RMAN:
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: Error from target database: ORA-06553: PLS-2
Test hardware description:
The test uses my machine. The configuration is as follows:
CPU: c433
Memory: 128 MB
Hard Disk: Cool 2 generation 20g
Test Software Description:Windows NT server4, SP5, Apache 1.3.12, php3.0.15, php4rc1, MySQL 3.22.29,
If you need to reprint it, please indicate the source!
Anyone who has used Oracle knows that it is very cumbersome to change the column name and sequence of tables in Oracle. Here is a simple method.
SQL> select object_id from all_objects where
The ORACLE tutorial is: Analysis and Solution of common ORACLE error codes (3 ). ORA-00600: internal error code, arguments: [num], [?], [?], [?], [?]
Cause: this error is usually an internal ORACLE error and is only useful for OSS and ORACLE
The ORACLE tutorial is: Installing Oracle 8i on P4. Method 1:1. Copy the ORACLE software to the hard disk.2. copy the hard drive directory file stageComponentsoracle. swd. jre1.1.7.30/1The file DataFilesExpandedjrewin32binsymcjit. dll is
1. query table space usage:Sqlplus system/manager @ topprodCopy codeThe Code is as follows:SQL> @ q_tbsFREE 2. How to query temp:Sqlplus system/manager @ topprodCopy codeThe Code is as follows:SQL> SELECTD. tablespace_name, D. status
The following is an example of a trigger:Copy codeThe Code is as follows:Create or replace trigger logon_ip_controlAfter logon databaseDeclareIp STRING (30 );User STRING (30 );BeginSELECT SYS_CONTEXT ('userenv', 'session _ user') into USER from dual;
Because:1) improve performance:Try to store the table and index tablespaces on different disks, and split the two types of data with different IO properties, which can improve the overall I/O performance of the disk;
2) Ease of management:If the
1. Obtain the Database Name and creation date.SELECT name, created, log_mode, open_mode FROM v $ database;
2. Host Name of the ORACLE database computer, Instance name of the ORACLE database, and version information of the ORACLE Database Management
1. Create, configure, or delete a Database by running Oracle Database Configuration Assistant (you can also enter dbca in the command line );2. Create a database using command line3. Create, configure, or delete a database by running a custom batch
1. Use where to use having less;
2. When you query more than two tables, place less records on the right;
3. Reduce the number of table accesses;
4. When a where subquery exists, the subquery is placed at the beginning;
5. Avoid using * in the
Oracle Database Backup:
-- Keep the backup record of the last week;==== Body:===== Start ======================Copy codeThe Code is as follows:Echo sets the backup file storage folder...Set "tbuf = E: \ Cway \ backup"
Echo sets the backup file
Copy codeThe Code is as follows:-- Get the start time of the last dayCreate or replace function fd_lastxunstart (rq in date) return string isRefstr varchar2 (50 );V_rq date;Begin-- Get the date of the last ten daysV_rq: = trunc (rq );Select case
Oracle provides a variety of methods to reduce the time spent profiling Oracle SQL expressions. The profiling process will drag down the system performance when executing complex queries with a large number of execution plans. Now let's take a brief
1. log on to the server and create rman to automatically delete the archived log script two days ago.[Oracle @ 108 ~] $ Cat> del_ora_log.rman Crosscheck archivelog all;Delete noprompt expired archivelog all;Delete noprompt force archivelog until
1. query v $ database to obtain
Because DBID has records in the control file and data file, you can query the v $ database view if you can mount the database.
Copy codeThe Code is as follows:SQL> alter database mount;Database altered.SQL> select
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