I. Introduction to the ConceptScript: Scripts are executable files that are written in a certain format using a specific descriptive language, also known as macros or batch files.
two. BackgroundRecently installed Oracle database under Windows,
To view the name and size of a table space
Copy Code code as follows:
Sql>select T.tablespace_name, round (SUM (bytes/(1024*1024)), 0) ts_size
From Dba_tablespaces T, dba_data_files d where t.tablespace_name = D.tablespace_name
Usage of Lpad in Oracle
Pad translation: Filling
Lpad function, add the specified string to the left of the string, using:
Www.jb51.net
Lpad (string, intercept length, added string).
It is not accurate to add a string, but it is more accurate to
How do I return a table variable in Oracle's function?
Too late, too much theoretical knowledge will not say, the following simply said to achieve it!..
1, create the Table object type.To return a Table object in Oracle, you must customize a
To make things simpler, I set up a unified checking database account on multiple Oracle data, and the account has access to only a few specific views (the SQL generated view that needs to be queried), as follows:
Root>sqlplus/as SYSDBA
Entering the
The two very universal netizens more concerned about the question summary answer.
The difference between in and exist
From the perspective of SQL programming, in intuitive, exists not intuitive more than one select,
In can be used for various
If one of the data in the table is deleted in Oracle, it can also be rolled back by a rollback operation (rollback) If you want to clear a
Table, but do not want to be able to rollback operations, you can immediately release resources, then need to
Receive Contract_no and ITEM_NO values and look in the inventory table if the product:
Shipped, assigned in Arrival_date 7 days after today
Ordered and assigned in Arrival_date to one months after today
There are no orders and no shipments,
Copy code code as follows:
--Created on 2010/11/04 by Wangnan
Declare
--local variables her e
I integer;
TYPE t_table is Table of VARCHAR2 (a) INDEX by VARCHAR2 (2);
V_t_table t_table; The
TYPE t_pg3 is TABLE
1) need to create a storage directorymkdir Backup2) Writing Shell footsteps #!/bin/bashExport Oracle_base=/opt/oracle- -The path needs to be changed according to the actual pathExport oracle_home= $ORACLE _base/ora10gr2/db_1 -The path needs to be
One, close the database
[Oracle@rhel5] $sqlplus/as sysdba
Sql>shutdown immediate;
Second, close the monitoring
[Oracle@rhel5] $lsnrctl stop
Iii. deletion of Oracle_base
I'm switching to root here.
[Root@rhel5] #rm-rf/s01
Iii. Clearance of
SQL1:
Copy Code code as follows:
--1, viewing the name and size of the table space
SELECT T.tablespace_name, round (SUM (Bytes/1024 * 1024)), 0 ts_size
From Dba_tablespaces T, Dba_data_files D
WHERE T.tablespace_name =
In an Oracle query, use Oracle's Decode (field, ' field value ', number) if there is no sort, but you want to have the information of a particular value in a column go ahead.
If you want to have name= ' John ' results in front of all the data from
Recently collected some questions about thinkphp connection Oracle database, there are many friends in accordance with the method to connect MySQL operation, resulting in some methods in the Oreale can not be used normally. For example, the
I am still a small rookie of IT industry, to participate in the work time is not long, but with their own a studious heart still have their own learning footsteps never stop, their programming is also a very fruitful ~ ~
It has always been assumed
Things to be aware of when using EXPDP and IMPDP:Exp and IMP are client tool programs that can be used either on the client or on the server side.EXPDP and IMPDP are server-side utilities that can only be used on the Oracle server and not on the
One, what is transaction transaction is used to guarantee the consistency of data, it consists of a set of related DML statements, the group of DML (data manipulation language, additions and deletions, no query) statement either all succeeded, or
Oracle's paging a total of three ways method one according to ROWID to divide SELECT * from EMP WHERE ROWID in (select ROWNUM RN, RID From (SELECT ROWID rids, EMPNO from EMP ORDER by EMPNO DESC) WHERE ROWNUM ((currentPage-1) * pageSize) per
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