Recently wrote an Oracle EXP auto export script, the individual execution can run normally, put in the crontab task cannot execute pull.
Script 1:setenv.sh
Export Oracle_base=/opt/oracle
Export Oracle_home= $ORACLE _base/10.2.0
Export ORACLE_SID=
/*There are four main functions in Oracle that support regular expressions:1,regexp_like: Similar to like function2,REGEXP_INSTR: Similar to INSTR function3,REGEXP_SUBSTR: Similar to SUBSTR function4,regexp_replace: Similar to REPLACE functionThey
We often have complex business logic in project development. By using Oracle's stored procedures, you can significantly reduce the amount of Java program code written and stored procedures executed on the database, so that you can leverage Oracle's
To_date format (in time: 2007-11-02 13:45:25 for example)
Year:
YY two digits two-digit year display value: 07
YYY three digits three-digit year display value: 007
YYYY four digits four-digit year display value: 2007
Month:
MM number two-bit month
This article is from the "Happy F" blog, please be sure to keep this source http://gaoxingf.blog.51cto.com/612518/121138
Common commands for Oracle databases under Linux
Executed under Oracle users:
$ sqlplus system/manager @ file.sql Execute SQL
Topic: Known Company Employees table EMP (EID, ename, Bdate, SEX, city),
Department Table Dept (DID, Dname, dcity),
Worksheet work (Eid,did,startdate,salary). Each field is described as follows:
eid--employee number, up to 6 characters. For example
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
There is a table named TB with the field segment named name and data type nchar (20).
1, assuming that the field data is empty, no matter what type of field to change, you can directly execute:
ALTER TABLE TB Modify (name Nvarchar2 (20));
2,
First, firstly: the cause of the problem, I previously created in the f:/llh/directory of a bookspace table space, and then do not want to this table space, so I directly deleted, this error is because I will f:/llh/bookspace.dbf and several files
--Current main library PROD3, standby library aux--View Primary Reserve log transmission sys@prod3> select Max (sequence#) from V$archived_log;
MAX (sequence#)--------------sys@aux> Select sequence#,applied from V$archived_log ORDER by 1 desc;
Several ways in which a function/procedure in Oracle Returns a result set:
In the case of function return, the stored procedure can only be changed to out parameters and passed in the Oracle 10g test.
(1) Return cursor:
The return type is:
Usually we use EXPDP to derive sequence in two ways:Small batch:Include=synonym: "In (' AAA ', ' BBB ')----This does not enter the schema prefixSCHEMAS=LYCH,LYCH01----Here just export the top two sequence under schemas. But the problem with a very
There should be a lot of ways to import data into Oracle, and there are different ways to import different requirements, and the recent use of Oracle's SQLLDR command to import database data feels like a pretty good technical point. Using the SQLLDR
------------I do not have him, but the hand is ripe, humble and foolish, and eager to be hungry-------------DDL operations:-- Create student tables CREATE TABLE Student (Sno Number (4) is not NULL,Sname VARCHAR2 (Ten) NOT NULL,Birthdday Date);-- Add
When you create a new connectionConnection name: Your own casual name (but preferably the same as the project name)User name:Password:Host name: The IP address of the DB file namePort: The port in the DB file nameThe name after the port in the
1, open the CMD Command dialog box, login Sqlplus (mainly if the administrator account, the user name needs to add as SYSDBA, the password format is [email protected]/instance name), enter the AWR Execute SQL statement (Note that The path is based
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