Problem:When IMP is a DMP file, the prompts do not support the required character set conversion (from type 850 to 852).
principle:
Oracle Multi-Language settings are designed to support the world wide range of languages and character sets, and
Suppose there are two users:
Website Higher permissions
Websiteapp does not have permission to create a table
Table:
Under the website User:
Grant SELECT, INSERT, UPDATE, delete on table_test to Websiteapp;
Under the Websiteapp User:
--Common
Oracle cannot import a solution for empty tables
C:\users\administrator>sqlplus/as SYSDBA
Sql*plus:release 11.2.0.1.0 Production on Sunday August 17 19:24:29 2014
Copyright (c) 1982, Oracle. All rights reserved.
Connect to:Oracle Database 11g
Using storage to implement
Create or Replace procedure proc_dropifexists (
p_table in varchar2
) is
v_count number (a);
Begin
Select COUNT (*) into the
v_count from
user_tables
WHERE table_name = UPPER (p_table);
Cmd->sqlplus "/as sysdba" command line login OracleAt this point you can see what the default account, this step can be omitted.Cmd->select username from dba_users;//No semicolon will show a "2" on the next line, because sqlplus each command should
1, query the number of Oracle connectionsSelect COUNT (*) from v$session;2, query Oracle's concurrent connection numberSelect COUNT (*) from v$session where status= ' ACTIVE ';3. View the number of connections for different usersSelect
In Oracle, it is not difficult to get the year in the date, such as taking the year out of the sysdate. The common approach is to select To_number (sysdate, ' yyyy ') from dual, and in fact, Oracle has a better way of using the Extract function,
The first oracle that came across the job that distinguishes it from SQL Server is Oracle's left-right connection statement.
This thing, or give a chestnut to describe the image of comparison. A user table users (user_id,address), Mobile number
Transferred from: http://www.jb51.net/article/19541.htm
An example of a cursor if,for
Create or replace procedure peace_if
Is
Cursor Var_c is select * from grade;
Begin
For temp in Var_c loop
If Temp.course_name = ' OS '
About the Ash:v$session view is the most important dynamic performance view because it is dynamic, so once disconnected, the information previously recorded in V$session is lost, so in order to preserve these historical information, a
First, enter the service. Point Refresh to see if Oracle's Tnslistener service is open.
Second, into the CMD run ipconfig look at your IP address, write it down.
Then, with everything this small software search Listener.ora, search to this
When a record is updated or deleted, it cannot be manipulated, or is locked, and sometimes, when we do update or delete on Oracle, there is no time to get the result of the operation,
has been in the process of being processed, it is time to
1.oracle Chinese Concept Manual
Both the concepts of connection (connection) and sessions (session ) are closely related to the user process , but they have different meanings.
connections : Communication channels between user processes and Oracle
This is often the case when you use Pl/sql developer to remove users."Unable to delete the currently connected user"
Workaround I post the SQL statement directly
/*
Delete the current connection user
* *-
1, first switch to SYSTEM user
--undo Table Space Summary
--View all table space names
Select name from V$tablespace;
--Create a new undo table space and set automatic extension parameters;
Create undo tablespace undotbs2 DataFile ' D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS02.
Set Operator: union/union All union set, INTERSECT intersection, minus difference set
one, UNION and set, the public part only contains one time
example: to find the EMP table ename containing ' a ' or containing ' M '
sql> SELECT * from emp where
Trigger
Is the code block that executes automatically when a particular event occurs. Similar to stored procedures, but users cannot call them directly.
Function:1, allow/limit the modification of the table2, automatically generate derived columns,
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