Export from the database server using EXP is displayed as follows:
[oracle@kf15-1]:/users/oracle>$ exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_unix.dmp Satistics=none buffer=1000000 export:release 10.2.0.4.0-production on
Analyze table can typically specify analysis: Table, all fields, all indexed fields, all indexes. If not specified, all are analyzed.
sql> Analyze table my_table compute statistics;
sql> Analyze table my_table compute Statistics for table for all
In Java Operations on Oracle, date fields are a headache, but it is not difficult to grasp the matter carefully.
Give an example to illustrate:
There are name VARCHAR2 (20)//book names in table books, Buydate date//Purchase two fields.
A database
In Oracle databases, sequence is equivalent to serial number, sequence automatically increases each time it is taken, and is typically used to sort by sequence number.1, Create Sequence
(Note: You need to have create sequence or create any sequence
Dead lock.
Use the SELECT * from V$session, find the session that has been disconnected, and note the value of Sid and Serial#; Kill the session with ALTER SYSTEM kill Session ' SID, serial# '.
Reset Oracle
[Root@localhost ~]# su
1, the creation and description of the sequence
To create a sequence, the syntax format for the Oracle sequence is:CREATE SEQUENCE sequence Name[INCREMENT by N][START with N][{Maxvalue/minvalue n| Nomaxvalue}][{cycle| Nocycle}][{CACHE n| NoCache}];
1
--loop cycle Usage (output 1 to ten) declare V_num number (2): = 0;
Begin loop V_num: = V_num + 1;
Exit when V_num > 10;
--The above exit loop can also use the following 3 lines/* if (V_num > 9) then exit;
End
In Oracle9i, Oracle provides an internal event that forces a flush buffer Cache with the syntax:
alter session SET events ' immediate trace name Flush_cache Level 1 ';
Or:
ALTER session SET events = ' Immediate trace name Flush_cache ';
Similarly,
To start and close the database,must be logged on as a user with Oracle Administrator privileges, usually with aSYSDBAPermission for the user to log in. In general, we often use the SYS user to start and close the database with a SYSDBA connection.
I know Oracle does not support auto_increment automatically increment, need to establish a sequence to achieve automatic increment.
Then set up a trigger to implement the Add 1 function.
The function that I want to implement is to add a piece of
Oracle 2010
Http://www.cnblogs.com/jiguixin/archive/2011/09/09/2172672.html
Download Address:
Http://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_client.zip
Unzip the downloaded zip file first and run the Setup.exe file.
Create or Replace function Row_split (var_str in String, Var_split in string) return
t_ret_table
pipelined
as Var_tmp varchar2 (4000);
Var_element varchar2 (4000);
N_length number : = Length (var_split);
Begin
Var_tmp: = var_str;
Create or Replace function test111 (ItemNumber in varchar2) return sys_refcursor
is
return_cursor sys_refcursor;
begin
OPEN return_cursor for SELECT ' a ' dual WHERE 1 = itemnumber;
return return_cursor;
End test111;
Use the following
Step One:
Locate the session information for the specified user, and draw up the execution script:
#!/bin/kshecho "Conn Sys/sys as SysdbaSelect ' Alter system kill session ' ' | | Sid | | | serial# | | | ' From sys.gv\ $session where username= '
Log in to the database with DBA authority.
1, select * from V$locked_object detect the Locked object, where object_id is the object of the id,session_id is locked object has a session ID; 2, select object_name, object_ Type from dba_objects where
This example has been completely tested, one-way, bidirectional synchronization can be used.
--Noun Description: Source--The database being synchronizedPurpose-the database to sync to
The first 6 steps must be performed, after the 6th is some
Oracle in%rowtype:
%rowtype: Indicates that the type is a row data type, stored as a row of data, a row with many columns, equivalent to a row of data in a table, or a row of data in a cursor.
The%rowtype effect is that when querying the entire
Oracle Data Source Configuration Prerequisites: Jboss_home=jboss's home directory (installation directory) has the Jndi name of the test Jboss4.2.0-ga version data source is oracleds Oracle data source with password code is configured
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