I. Oracle monitoring exception1. Check whether the Oracle database is started: Ps-ef | grep ora2. Check whether the Oracle database listener is started: Ps-ef | grep LISTEN3. Check if the Oracle DB Listener is healthy: lsnrctl statusIf not started,
1, in order to avoid errors, the best, in the newly created tablespace, user name and password, and the original user name and password are aKind of, so save a lot of trouble.Part fifth: Some common commands1. Table operationSee which tables the
1.UNIX time and normal time conversion to each other1.ORACLE first create a function method, then directly use, MySQL direct use method unix_timestamp,from_unixtimeOracle_to_unix (Create_date)Create or Replace functionOracle_to_unix
1. Oracle DatabaseCharge database, strong data processing capability, high security2. The language of the operating databaseSQL language, the standard of execution is the SQL99 standard3. Products of the database① charges: Oracle, SQL Server, DB2 ...
Reason one Oracle generates ROWMUN,ROWID fields for each table by default, and these fields we call pseudo-columns1 Creating a Test tableCREATE TABLE TEST (ID number,name VARCHAR2 (20))2 Inserting test dataINSERT into test values (1, ' Zhang San ');
Insert into TabName (datecol) value (sysdate); --With a date valueInsert into TabName (datecol) value (sysdate+1); --With a date valueInsert into TabName (datecol) value (to_date (' 2014-02-14 ', ' yyyy-mm-dd ')); --With To_dateInsert into
A script to insert data in batches that you need to work with.DeclareCode_ Number (10): = 100000;Num_ Number (10): = 2000000;Error_message exception;BeginFor I in 100.. LoopNum_: = num_ + 1;Code_: = Code_ + 1;INSERT INTO
1. Oracle's command to regain statistical informationexec dbms_stats.gather_schema_stats (ownname ='LCoe739999'gather "for allcolumns size repeat'4)# need to modify ownername options designation and degree generally related to CPU dataYou can
Requirements: We need to organize the table space created by the site user and its storage data, and standardize management. When organizing the table space created by the user, it is necessary to exclude the table spaces that non-user creates, all
Tag:listening acl Summary sys res sqlplus gen mini sysdba Service Name --Modify [[email protected] ~]$ sqlplus / as sysdbasql> according to business requirements show parameter service_names;name
1. It is often necessary to back up database tables in the work, sometimes Baidu or ask, simple.If the backup table does not exist:Oracle Syntax CREATE TABLE ZHAOBSH as SELECT *from zwkmye2017 SQL Server Syntax SELECT * to ZHAOBSH from ZWKMYE20
Sql> shutdown immediatesql> startup mountsql> alter system set log_archive_dest_1= ' location=/u01/app/oracle/archive/ mandatory '; Sql> alter system set log_archive_dest_2= ' location=/u02/app/oracle/archive/ Optional ';
Oracle Basic TutorialsDirectoryinstallation of 1.oracle2. variables and Types3. Control Statements4.oracle User and authorization management5. Manage Data Sheets6. Querying Data Sheets7. Manipulating Data Sheets8.SQL built-in functions9. TriggersTen.
Oracle Statistical informationstudy Oracle FoundationBasic statistics related 1. Which optimizer mode requires statistical information collection, All_rowsAt present O3 recommends that regardless of the mode of statistical information collection,
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