Oracle database part moved to flash storage solution
1. Implementation requirements
2. Confirm the migration of tablespace information
3. Confirm Redo Information
4. Confirm the Undo information
5. Table space migration to
Table space usage includes: View table space name and size/view table space physical file name and size/view rollback segment name and size and so on, you can refer to this articleSQL1:Copy CodeThe code is as follows:--1, view the name and size of
Sequence SEQUENCEis also one of the database objects that generates some column numbers according to the specified rules.A sequence is usually used to provide a value for a table's primary key.Primary key: Usually each table has a primary key field,
Newly installed oracle12c, the new CDB and PDB users how to log on has been confused, after a night of search, finally resolved.
Sqlplus/nolog-conn/as SYSDBA Login to Oracle
Switch session to PDB under ALTER session set CONTAINER=PDBORCL
1, by default, ORACLE log files are recorded in the $oracle/rdbms/log directory
[Email protected] log]$ pwd
/home/oracle/oracle/product/11.2.0/db_1/rdbms/log
Log file is (Alert_.log):
[email protected] log]$ LL
Total 84
Truncate and DELETE statements in OracleFirst of all, truncate command:Syntax: TRUNCATE table table;The data in the table is emptied and the storage space is freed.It is automatically committed after it is run, including other uncommitted sessions,
Oracle Index Details (ii)--Index classification?? Oracle provides a number of indexing options. Knowing which option to use under a given condition is important for the performance of a program. A bad choice can cause a deadlock and result in a
Now is the fashion to the highest level, the deployment of this project, good SQL Server threw it (there is a genuine authorized Enterprise Edition, God ... ), every person will boast: "We are on the top of the Oracle Database system! ”。 Look at the
First to complain, according to this play to spend my big half a day, all the way to the pit!My computer is Win7 64-bit.The first stepOpen the php.ini and remove the semicolon from the front of the Extension=php_oci8_12c.dll
--declaring cursors; cursor cursor_name is select_statement--for Loop Cursors--(1) Defining cursors--(2) Defining cursor variables--(3) Use this cursor with a for loopDeclare--type definitionCursor C_jobIsSelect Empno,ename,job,salFrom EMPwhere job=
Ora-01034:oracle not availableora-27101:shared memory realm does not exist process id:0 session id:0 serial number: 0 Because of this little mistake, tossing me for a few days, special record as follows 。 Internet search for the next solution, as
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
When using a self-increment sequence, when a trigger is needed, I always report a compile pass, but there is a warning or an error when I create multiple triggers consecutively.---1. Application Information drop TABLE app_info Cascade
one, from Oracle to XML1. start Sqlplus execution >(1) get all fields of the exported table: in the substitution statement, Table_name,owner is the name of the table to be exported and the user name of the table, which is executed in Sqlplus after
Recently asked to develop when the data table changes when the need to call the Web interface, the Internet to find a number of articles to look at it is not very good, but also according to other people's ideas to achieve the next, the feeling is
Create and use packages for oracle Database SQL statements, oraclesql
-- Create a package
Create or replace package pkg_emp
As
Name emp. ename % type;
Procedure pro_emp (id emp. deptno % type, num out number );
Function fun_deptno (p_empno
Oracle redo log file (Code instance), oracle Log File
1. query information about the redo log file group.
select group#,sequence#,members,status,archived from v$log;
2. query the information of the redo log file
select group#,type,member from
Common Oracle backup commands, oraclebackup
1. Set the backup tag
1. backup database tag = 'full _ bak1 ';
Note: Each tag must be unique. The same tag can be used for multiple backups to restore only the latest backups.
2. Set the backup set size
Oracle queries the average SQL Execution time (Code instance) through the v $ SQL view, oraclesqlOracle queries the average SQL Execution time (Code instance) through the v $ SQL View)
SELECT SQL _TEXT, EXECUTIONS total EXECUTIONS, ELAPSED_TIME/1000
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