ORACLE Database Operations Command

//login Command sqlplus sys/oracle as sysdba;    //sys/oracle  for   username/password//delete table space  mofdrop tablespace mof including  contents and datafiles cascade constraints; //Delete User  yaojiandrop user  yaojian cascade; //CREATE

Oracle Configuration Tnsnames.ora File Instance

Oracle Configuration Tnsnames.ora File InstanceIn order to connect with the server, the client must first contact the listening process on the server. Oracle describes the connection information through the connection descriptor in the Tnsnames.ora

Oracle SQL Optimized index monitoring

1. Monitor whether the index is usedIn addition to the primary key being an integrity constraint and automatically becoming indexed, the purpose of creating a normal index is to improve the query speed, and if we create indexes that are not used,

Oracle system tables

----------------------------------------------------------------------User:Dba_users storing information for all users----------------------------------------------------------------------Table:Dba_tables store all tables for all usersUser_tables

Some basic operations for Oracle user rights

CREATE TABLE SpaceCreate TABLESPCE Test datafile ' D:\TEST01.ora '; Create userCreate user test identified by test01; Authorization to the userGrant Create table,unlimited tablespace to test;--can also authorize select Insert and more ...

Oracle view parallel SQL statement number of concurrent

1. Execute sql:select/*+ Parallel (a,4) * * from Tf_f_user a where rownum2. How to view the parallel number of the SQL statement:Select T.sql_text,t.sql_id,s.sid from V$sql t,v$session s where t.sql_id=s.sql_id and t.sql_text like '%rownumExecuting

Oracle Import and Export

Enter cmd-->SqlplusSysAs SysdbaTo delete a table space:DROP tablespace tseve_data including CONTENTS and datafiles;To create a table space:Create Tablespace Tseve_dataLoggingDataFile ' D:\allworkplace\oracleWS\TSEVE_DATA.dbf 'Size 50mAutoextend

Oracle tablespace Usage Query

Sqlplus-s/As SysdbaSet Trimspool onSet Linesize 10000Set pagesize 50000Set heading onSet term offSet heading onSet feedback off;Set NEWP none;Set echo offSet markup HTML onSpool onSpool Xj.xls--Table Space usage query:Select

Nodejs Connecting the Oracle Database

NODEJS connection to Oracle database, official details of each platform document:https://github.com/oracle/node-oracledb/blob/master/INSTALL.mdMy Nodejs is connected to Oracle's configuration, operating environment:Windows7 x64Nodejs 0.12.7Python 2.7

Querying a long column in Oracle

Sql> CREATE TABLE T_long (ID number, long_col LONG);The table is created.Sql> INSERT into T_long VALUES (1, Lpad (1, 32767, ' HELLO world! '));1 rows have been created.Sql> COMMIT;Submit complete.Sql> SELECT * from T_long WHERE long_col like '%world%

One of Oracle statement optimizations

PublicListCREATEZTREEDEP (String compid) {List DD =NewArraylist(); Find SQL statements for all child departmentsString SQL = "Select Dep_id,dep_name,super_id,folder from Td_department" + "Start with super_id in (" + "Select dep_id from Td_department"

Some of the problems Oracle encounters

1. Error ORA-30009 when manufacturing dataTo schedule a task:Insert into Select from by rownum100000There will be ORA-30009 connect-by errorTo modify a task:Insert into Select from xmltable ('1 to 100000')Use XMLTable to accumulate2, Tns:no

Oracle Connect by usage

Oracle Connect by usageExperiment with the EMP table from the Scott user first.EMP table has a field, one is Empno (employee number), the other is MGR (higher manager number)Here is all the data in the table1SELECT * from emp start with empno=7698

Some differences between MySQL and Oracle in SQL statement notation

1. Single Grouping function650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/F2/wKiom1XwLKPAAOrjAAB9Ym73cYI651.jpg "style=" float: none; "title=" 2015-09-09_204103.png "alt=" Wkiom1xwlkpaaorjaab9ym73cyi651.jpg "/>650) this.width=650;

Oracle's Autotrace Use

Sqlplus's autotrace is a very simple and convenient tool for analyzing the execution plan of SQL, and is a very useful tool in most cases. The SQL execution plan and execution status provided by the Autotrace tool provide the basis for optimization

Oracle Foundation of Dual

Excerpt from: http://www.linuxidc.com/Linux/2012-07/66288.htm1thDual is not an abbreviation but a complete word. Dual noun means logarithm, when doing adjectives refers to two heavy, two yuan.2ndThe dual table in Oracle is a single-row,

Oracle resolves the second modification of the XML completion version

In fact, the XML string is like an external table in Oracle, so Oracle has some rules for parsing XML strings that are very demanding. The data provided by the XML string is a table, so Oracle must provide a column header that is consistent with the

When Oracle is associated with two tables, the difference in performance caused by the writing of year and month conditions

The requirement is to compare the values of the last two months and test the data! So I use self-correlation to put two months of data on one line and then compare it! The SQL statement resembles the following: Select B.NY,B.DWDM,。。。。 , a.js as

Oracle multi-row to multi-column

Previous time to do questionnaires, customers create custom questionnaire content, including topics and options content;Then you need to go around the questionnaire,,,, trouble.So to search the internet everywhere, there is no direct result, and

Oracle starts with pfile or spfile, oraclepfilespfile

Oracle starts with pfile or spfile, oraclepfilespfile Oracle 11GStart a database using pfile Startup pfile = 'pfile parameter file Path'   Oracle 11GUse spfile to start a database Spfile = Windows default directory % ORACLE_HOME % \ database \

Total Pages: 2147 1 .... 2027 2028 2029 2030 2031 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.