MySQL imports data into Oracle.To build an Oracle table:CREATETABLE"Gg_user" ("USERID"VARCHAR2 (255 BYTE)NotNull, "Ispart"VARCHAR2 (255 BYTE)DEFAULTNull, "Actualpositionid"Number (11)DEFAULTNull, "Beginworktime"TIMESTAMP (0)DEFAULTNull,
1. Close an instance[Email protected] ~]$ Sqlplus/as sysdbasql> shutdown immediate;2. Back up the SPFile filesql> create pfile= '/home/oracle/acct1.pfile ' from SPFile;3. Modify the Pfile file Cluster_database to False*.cluster_database=false4. Use
1. Open a session Session1Sql>select SID from V$mystat where Rownum=1;Sid158Sql>create table T (x int primary key);Table createdSql>insert into t values (1);Commitsql>update T1 set t=10 where x=1;2. Open a session againSql>select SID from V$mystat
One, roll back to the retention point
Use the savepoint statement to create a savepoint in the current transaction.
Use the ROLLBACK to savepoint statement to roll back to the saved point that was created.
Second, the data state
Audit audit users to see what the user is doing, and Oracle will store audit trail results in OS files or databasesActivating auditsConn/as SYSDBAShow parameter audit_sys_operations; View Audit parametersAlter system set AUDIT_SYS_OPERATIONS=TRUE
Oracle 11g starts with the ability to set a table as read-only, which prevents modifications to certain tables and provides a certain degree of security.Settings are as follows:-- Set table as read-only permission (locking) ALTER TABLE READ only ;
ExportEXP username/password file= file name. DMP Full=y;ImportIMP username/password file= file name. DMP Full=y;Things to be aware of when using EXPDP and IMPDP:Exp and IMP are client tool programs that can be used either on the client or on the
How can I add a new instance to an Oracle database ?, Oracle instances
If the SID is not specified during Oracle installation, the system will set it to orcl by default. If you forget to modify the service name during installation, or you need to
The oracle string intercepts substr, instr, and substrinstr.
The position is from1StartSubstr ("ABCDEFG", 0); // return: ABCDEFG, intercepting all characters
Substr ("ABCDEFG", 1); // return: ABCDEFG, intercepting all characters
Substr ("ABCDEFG",-0)
How can I view the table space usage of an oracle database ?, Oracle Database
-- 1G = 1024 MB
-- 1 M = 1024KB
-- 1 K = 1024 Bytes
-- 1 M = 11048576 Bytes
-- 1G = 1024*11048576 Bytes = 11313741824 Bytes
SELECT a. tablespace_name "tablespace
Oracle Stored Procedure demo sharing, oracle Stored Procedure demo
-- 1. Define the Stored Procedure
-- Definition
Create or replace procedure proc01
As n int; -- add points after defining variables
Begin
Select count (*) into n from
Oracle PL/SQL basic syntax summary, oracle basic syntax
Basic Oracle PL/SQL Syntax:
Declare (optional, declaring a variable or cursor)
Begin (required, where the statement is executed)
Exception)
End; (required. The semicolon cannot be omitted from
Oracle union usage, oracleunionOracle union usage.
Several well-known result set operation commands have been tested in detail today, and some problems have been found. Suppose we have a table Student, which includes the following fields and data:
Use the dbms_job package to create an Oracle scheduled task, and dbms_job to create an oracle
In the Oracle package, a package named DBMS_JOB is used to arrange and manage job queues. Through job queue, Oracle databases can regularly execute
The orderby sorting method that uses multiple conditions.
Select * from time order by location, date ;?
Explanation: Data in the second field is sorted only when the location value is the same. The default value is asc.
Then I thought about it
Solve the Problem of Automatic startup of PDBs during Oracle12c startup, oracle12cpdbs
Pluggable Database (PDB) is an important new feature in Oracle 12c, but the PDB Database is not automatically opened when the 12c instance is started. In this
New features related to Oracle database performance in Oracle 12.2.0.1, 12.2.0.1oracle
Changes in Oracle Database 12c Release 2 (12.2.0.1)
The following are changes in Oracle Database Performance Tuning Guide for Oracle Database 12c Release 2 (12.2.
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