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
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
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
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:
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
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:
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
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 "+",
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
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
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
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
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
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
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
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
User name: C # NEWO
========================================================== ============================================
/* Divided into four steps */
/* Step 2: create a
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
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