Oracle Database Common Commands

dba

--querying all users in the current systemSelect * fromall_users--Check all the tables below the current user:Select * fromtabwhereTname not like '%$%'--View all tables under the current user (more info)Select * fromUser_tables--Check all the

Oracle database build sequence, use sequence to implement primary key self-increment

2. Create a sequence--Create sequenceCreate sequence Seq_ship_imageMinValue 20MaxValue 999999999999999999Start with 40Increment by 1Cache 20;Use sequence:SELECT Seq_ship_image. Nextval from dual;Insert into Ship_image (id,img_path,remark,ship_id)

Oracle's functions

Oracle's function classificationSingle-line function: Calculates the input values for each row, obtains the corresponding calculation result, returns to the user, namely,Each row acts as an input parameter, and the calculation results of each row

Oracle Create User Templates

Lplus/nologConn System/[email protected]Create tablespace aries logging datafile ' e:\oracle\oradata\orcl\aries.dbf ' size 32m autoextend on next 32m maxsize 2048m Extent management Local;Create user survey identified by 1234 default Tablespace

Oracle cannot start the graphical interface, no protocol specified

Linux terminal start graphical programming interface times wrong: No protocol specifiedThis is because Xserver does not allow graphics for other users to appear on the current screen by default. If you need other users ' graphics to appear on the

Oracle Common functions

First: Go to re-use the DISTINCT keyword.Second: The complement function lpad (left-fill), Rpad (right-complement)Eg: less than 15 of payroll columns use "$" to top up 15 bits (use the Lpad method to implement the left complement to the payroll

Oracle EXP Export PLUS filter conditions

Exp Username/[email protected] file= ' d:\hehe.dmp ' tables= (%) query= "" "Where Update_dtime >= to_date (' 2017-01-01 ', ' Yyyy-mm-dd ') "" "Create user Db_user_name identified by db_user_pwdDefault Tablespace ETL;Grant Connect,resource to Db_user_

Oracle Package Exercises

1 /*2 Create a package that implements the following functions3 1: Build a process that calculates the EMP table based on the minimum wage that the user has passed in4 number of persons below the minimum wage and information on these personnel5 2:

Considerations in the Oracle installation process

Scenario Description:During the Oracle installation process, a DBCA error occurred in the header during the creation of the database!Detection confirm environment: firewall is off.The reason: There is a need to note that in setting up the Oracle

Oracle's Startup and connectivity

1. Oracle Start-upOracle's services are as follows:Starting Oracle has two important services, such as the identity office:L Oracleoradb11g_home1tnslistener: Monitoring service, mainly used for client access to the database, if the service does not

18th Day Oracle Architecture (1)

Oracle Management:InstanceInstanceRAC (real application cluster) Oracle working environment, one-to-manyInstance1 Instance2\ /DatabaseSGA buffer shared pool share pools are used to cache execution plans for recently executed SQL statementsMain

Oracle Query Merge Columns

In Oracle queries, there are times when you want to merge multiple columns into a single row, with the following methods:1. Decode functionThe syntax for the decode function is:   Decode (condition, value 1, return value 1, value 2, return value 2,..

Oracle Course archive, next day

Salary: WagesORDER BY: SortDesc: DescendingHire: EmploymentSingle-line functionIt's seven days a week.January is not necessarily 30 daysTrunc: InterceptDual: Empty tableLast: FinallyMonth: MonthsRound: Rounding MethodSUBSTR: String

Use of some Oracle functions

NVL functionThe total value of a field is obtained by a query, and if the value bit is NULL, a default value is given.SELECTNVL (sum(T.DWXHL),1) fromtb_jhdetwherezydm=-1Here the usage of the NVL is concerned, NVL (Arg,value) represents if the value

Oracle View lock process, delete lock

View the lock table process SQL statement 1:Select Sess.sid,sess.serial#,Lo.oracle_username,Lo.os_user_name,Ao.object_name,Lo.locked_modeFrom V$locked_object Lo,Dba_objects AO,V$session Sesswhere ao.object_id = lo.object_id and lo.session_id =

Oracle or PL/SQL automatic disconnection Solution reference

Oracle Auto-Disconnect database connection workaround method One, the direct modification of the resource configuration file is done in three steps in the Sqlplus environment.        The first step is to query the resource file and find the profile

Oracle logs on with Scott users

Oracle has 3 types of users:System, SYS, Scott, where the difference between system and SYS is with the ability to create a database, the SYS user is able to log in enough to create a database, and Scott is the user who learns from the beginning of

Oracle Tuning analysis of effective cursor management

Analysis of effective cursor management"Thinking Analysis"The ability to interpret cursors as shared run schedules when SQL is not shared. There are two directions to the conventional approach:1. Adjust the size of the shared pool (shared operation

Oracle Course archive, first day.

SYS is the highest-privileged OracleDBSNMP: Simple Network Management systemCtrl+d Return to Oracle directory enter exit in SQL can alsoSelect; column where: RowSqlplus/as SYSDBA ENTER SQL Conn hr/hr use HR userLower: Automatically change the case

Oracle creates a user that can access only the specified object

Today, when developing an interface, it is necessary to provide an Oracle user to the interface development company, which can only access the specified table or view and log the process to this1. Create a user for OracleCreate user username

Total Pages: 2147 1 .... 1278 1279 1280 1281 1282 .... 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.