1, create a query Oracle SQL script file, named Cx.sql, which defines three variables
Last_date Yesterday's timeToday: the time of dayfile_name: Exported filename&1, &2, &3 represent the three arguments that are passed to the shell script that is
The main is Query All_tables table table_name and owner, if the table exists, execute execute immediate ' drop tableTABLE_NAME ';
--Determine if the table exists, delete if present
DeclareNum number;BeginSelect COUNT (1) into NUM from all_tables
Error:
In the startup Oracle database The Times is wrong as follows:
[Oracle@localhost ~]$ Sqlplus/as SYSDBA
Sql*plus:release 11.2.0.1.0 Production on Sat Feb 16 19:43:43 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to
EXPDP and IMPDP are the newly added export and import capabilities of Oracle starting from 10g. Name is called data pump.
Expdp:data Pump ExportImpdp:data Pump Import
The difference between EXPDP, IMPDP and exp, imp
EXPDP, IMPDP:1, you can import
In the security more and more attention to the near body, we often need to a table in the Database sensitive column data (bank card, ID number, amount, etc.) to encrypt, way data leakage, in the 11.2.0.4 can be implemented through the Dbms_crypto
The syntax is the same as the other SQL database tutorials, as followsDELETE from CoursesWHERE course_designater = ' Java110 '
A more complex method of operation by condition
DELETE from ClassconveningsWHERE CLASSES_NUM_FK > 4and
Distinct this keyword to filter out the extra duplicate records only one, but often use it only to return the number of records not duplicates, rather than using it to return all the values not to be recorded. The reason is that distinct only use
1, two different servers;
2, from oracle10g timing synchronization (2:00 every day) to sqlserver2005;
3, in security considerations, customer service does not provide sqlserver2005 account password, only we provide data sets;
4, both the program
One: The simple test job creation process case:1, first create a job_test table, the field is a date format
The code is as follows
Copy Code
Sql> CREATE TABLE Job_test (a date);Table createdSql> commit;Commit Complete
PHP under the Linux/unix to connect Oracle8 is very easy, but under the Windows platform is not easy, I after a long exploration to find a reliable way, do not dare to enjoy alone,
It is now published for the feast.
The author uses the development
Connecting to an Oracle database is simple, as follows
The code is as follows
Copy Code
Connectionstring= "PASSWORD=CZH; User id=czh;data source= (description= address_list= (address= (protocol=tcp) (host=192.168.168.211
Procedure Overview
A stored procedure (Stored Procedure) is a set of SQL statements that are compiled and stored in a database in order to complete a specific function.
The user executes it by specifying the name of the stored procedure and giving
Recently in the development process, encountered some trouble, is the development of efficiency issues, and sometimes other colleagues use plsql programming efficiency is significantly higher than their own, observed for a long time, only to find
! = does not equal select Empno,ename,job from scott.emp where job!= ' manager '^= not equal to select Empno,ename,job from Scott.emp where job^= ' manager '<> not equal to select Empno,ename,job from Scott.emp where job<> ' manager '> Greater than
Javax. management. malformedObjectNameException: Invalid character ''in value part of property found that it was originally the cause of the ojdbc6.jar package. On my machine, I used the 11g 11.1.0.6 driver, so I changed the driver,SolutionReplace
Asp tutorial. net connecting to oracleThe code in the button is as follows:String constr = system. configuration. configurationmanager. apps tutorial ettings ["connectionstring"]. tostring ();Oracleconnection conn = new oracleconnection (constr
The maximum length of varchar2 storage is 4000.The statement is as follows:Create table test (id varchar2 (4001); an error is reported during execution.If you change the statement to the following, the execution is successful.Create table test (id
After installation in Linux, you must manually start and close the database (dbstart | dbshut), listener (lsnrctl), and console (emtcl) each time ). How can I add Oracle to a Linux system service and start it on its own? The following uses CentOS 6.3
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