Oracle's flash-back technology is a data recovery technology that only restores user logic errors ,The flashback is for committing a commit transaction, no committed transaction, using rollback1. Flash back version Query Flashback Version QueryThe
Recovery of data deleted by mistakeOracle recovers deleted dataThere are two methods: SCN and time stamp two methods of recovery.I. Recovering deleted and committed data through the SCN1. Obtain the SCN number of the current databaseSelect
1. Add a second instanceConfiguration and Porting tool-->database configuration Assistant then create the instance step-by-step (instance named ORCL2)After the successful creation, there will be a service named OracleServiceORCL2 in the service of
I. Creating a table space for non-standard blocksIn the database, you can create a table space that differs from the database standard block size, which can transfer tablespace between two databases with different block sizes. Before creating a
Oracle View character set and modify character set:To view the character set of the database server:Select userenv ('language' from dual;Login with DBA:To stop the database:ShutdownTo start the database into the Mount state:STARTUP MOUNT;ALTER SET
Create a database1 Creating an Oracle database using the Database Configuration Assistant toolStep One Action windowThere are 4 choices. A CREATE Database B metabase option C Delete database D Administrative TemplatesStep Two Database Template
--1. Querying Dblink Permissions Select * fromSys.user_sys_privs TwhereT.privilege like Upper('%link%'); --2. Granting Dblink Permissions Grant CREATE Public DATABASELINK,DROP Public DATABASELINK todemobase; --3. Query the created Dblink
When it comes to soft parsing (soft prase) and hard prase, it is impossible to talk about Oracle's handling of SQL. When you issue an SQL statement to Oracle, Oracle performs several steps in this SQL process before executing and getting results:1,
-- Turn on line move function ALTER TABLE tablename ENABLE row movement; -- Restore table data at a point in time of deletion or modification Table to timestamp to_timestamp ('2016-05-07/17:01:50',' YYYY-MM-DD hh24:mi:ss'); -- Note: Turn off the
1: Log in to Plsql Developer, write a stored procedure, insert a value into a table, and run the stored procedure2: Open the plsql Developer Command Window.--Terminate procedure11.select * from V$access a Where object like ' setemusercontext% 'Note:
I. Formatting dates when using To_date () in Oracle need to be aware of format codessuch as: Select To_date (' 2005-01-01 13:14:20 ', ' yyyy-mm-dd HH24:mm:ss ') from dual;The reason is that SQL is case-insensitive, mm and mm are considered the same
Packages are used to logically combine procedures and functions, which consist of package specifications and package bodies.1), we can use the Create Package command for creating packages such as:I, create a package sp_packageII. Declare that the
After the Oracle 11g is installed, the user name and password are not remembered when logging in. Workaround: Create a new userFirst step: Log in As SystemCMD--->sqlplusPrompt for user name, then enter Sqlplus/as SYSDBA, the password is empty.
For a traditional relational database management system (RDBMS), such as Oracle, MySQL, etc., are stored and retrieved data in the database, in Oracle, a schema to represent a logical data structure or a collection of schema objects, schema objects
1, to the database, the table of each row of data record additions and deletions to changeAdd: INSERT into Table name values ()Delete: Delete table name where condition (id=? )Change: Update table name set column name =? Where Condition (id=? )Check:
Oracle Database language-Structured Query Language SQL, oracle database language
I. Data Definition Language DDL
1. Create a tablespace: Creat tablespace lyy DATAFILE 'C:/app/lyy. dbf' SIZE 10 M; (create a 10 m tablespace and store it in the C drive
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