Commands and functions commonly used by Oracle Sql*plus

Common commands:Connection SqlplusCommand line to run CMD entry, such as logging in the SYS mode, the command is as follows:(1). Sqlplus "sys/zhb126 as SYSDBA"(2). Sqlplus/nolog Connect sys/zhb126 as Sysdba(3). Sqlplus Scott/tigerStart a DB

Oracle private Dblink and pubic dblink

dba

db:11.2.0.3.0Oracle DBLINK is created into private and public DBLINK, which is created by default as private; Private Dblink only the created schema can be deleted, SYS can not be deleted, public dblink any schema can be deleted, as long as the

Ora-00031:session marked for kill handles a lock that cannot be killed in Oracle

Some Oracle processes have been killed, the state is set to "killed", but the locked resources are not released for a long time, sometimes there is no way to restart the database. Now provides a way to solve this problem, that is, in Oracle can not

Oracle gives users a variety of permissions, only as a normal user

Using the SYS or System/manager as SYSDBA; Connect to the database. Create a regular user konglin:create users konglin identified by Pwd_oracle; Delete users, drop user Konglin; Grant user permission to log on to the database:

How to modify the field order of Oracle in PL/SQL

This afternoon work encountered problems, I need to put the data in a table in its backup table a_1, but the a_1 table is missing two fields, so I will add two fields, but the new field will default to the last side, and table A in the order of the

Oracle field additions and deletions, add constraints

Syntax for adding a field: ALTER TABLE tablename Add (column datatype [default value][null/not null],....);Modify the syntax of the field: ALTER TABLE tablename modify (column datatype [default value][null/not null],....);Syntax for deleting a field:

Oracle in Connect by ... START with ... The use

Reprint: http://www.cnblogs.com/baiyixianzi/archive/2012/08/30/plsql12.htmlFirst, the grammar is roughly written: select * from some_table [WHERE Condition 1] connect by [condition 2] start with [condition 3]; The order in which the connect by and

Oracle intercepts a string (intercepts the string preceding a character)

has been verified.Requirements: A. A string in a database table may contain a "+" Example: orc+001may also not contain "+"B. Request if the string contains "+", the character before "+" is taken: orc+001 take ORCC. If the string does not contain "+",

ORA-00922: Option missing or invalid when creating Oracle database

Sdd53homeNew Oracle Database encountered ORA-00922: option is missing or invalidCause: There is usually a problem with the syntax of the statement. For example, the name is wrong, the keyword is wrong and so on. For nonstandard naming, double

Oracle JDBC can query variable-length fields through placeholders, and cannot query fixed-size fields

This question in six months ago, took me two days to solve, now just want to get up, by the way to record to prevent forgetting.With JDBC, precompiled SQL cannot be queried for fixed-length fields.To speak with an example:Create a table with only

Oracle HRMS api–create Employee

--Create Employee-- ------------------------- DECLARELc_employee_number per_all_people_f.employee_number%type: = ' WRKNO1000001 ';LN_PERSON_ID Per_all_people_f.person_id%type;LN_ASSIGNMENT_ID

Oracle about the use of dynamic EXECUTE statement execute immediate

SQL statement stitching can be performed using execute immediate when the database handles complex business logic in a developed application scenarioInsert into Tb_temp_public (v1, v2, V3, V4, v5,v6,v7,v8,v9) Select ",", ",", ",", ",", "from

Oracle one table inserts another table stored procedure

----Creating a stored procedure create or replace procedure Inserttest asCURSOR CS is SelectID, name, CLA, addr, phone, tel, x, Y, shape, Objectid fromHotel_bak T2;begin forCinchCS Loop BEGIN insert into hotel (ID, name, CLA, addr, phone, tel, x,

Configuring the Oracle database and listening to the Linux system self-booting "go"

Configuring Oracle database and monitoring with Linux system self-bootingIn some cases, there is a need to provide an unattended, randomly-enabled oracle on a Linux operating system, perhaps only to help friends who are not very concerned with

Oracle Free Client Installation Plsql connection

In the process of development, it is often not necessary to install Oracle on their own computers, it is too big.Here is a way to connect to Oracle using Plsql, similar to the Navicat connection to MySQL.First download plsql, install, here is a

Differences between oracle and mysql and oraclemysql

Differences between oracle and mysql and oraclemysql I. Self-Growth of primary keys: 1)Oracle: Use sequence implementation, such as creating a sequence. The starting point is 1000, and the step is 1: Create sequence myseq increment by 1 start with 10

Solution to ORA-12154: TNS: couldnotresolvetheconnectidentifierspecified when PL/SQLdeveloper connects to oracle

Solution to ORA-12154: TNS: couldnotresolvetheconnectidentifierspecified when PL/SQLdeveloper connects to oracle Use the PL/SQL developer tool to connect to oracle. An error is reported during logon: ORA-12154:TNS:could not resolve the connect

Definition formats of basic Oracle statements

Definition formats of basic Oracle statements Oracle built-in data typesI. character data1. char (size)2. varchar2 (size) is the most commonly used, with a maximum length of 4000 bytes.3. nvhar (size) and nvarchar (size)4. varchar (size)5. We

Create Table spaces and users in Oracle and create tables in oracle

Create Table spaces and users in Oracle and create tables in oracle User name: C # NEWO ========================================================== ============================================ /* Divided into four steps */ /* Step 2: create a

Unlock database users

Unlock database users1. log on to and unlock the account with the dba role. First, set the specific time format to view the specific time. SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24: mi: ss'; Session altered. 2. Check the lock time

Total Pages: 2147 1 .... 666 667 668 669 670 .... 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.