A package is an attribute of Oracle Pl/sql, which is like a container or a namespace that combines a variety of logically related types, constants, variables, exceptions, and subroutines. Provides a good organizational unit when writing large,
Database version and Platform information
The database version is 10.2.0.1 and is above the 32-bit win 2003 SP2ORACLE v10.2.0.1.0-production vsnsta=0Vsnsql=14 vsnxtr=3Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-productionWith the
1. Use of query statementsUse a SELECT statement and a subquery (subquery) to return data from one or more tables, views, and entities.1.1 Related subqueriesYou can use a subquery (as subquery) or in or exists as part of a condition of a where, such
Oracle Paging query statements can basically be applied in the format given in this article.
Paging Query format:
The code is as follows
Copy Code
SELECT * FROM (select A.*, RowNum RNFrom (SELECT * from table_name) A
Date field: SQL Server Date field format in the same character field format, that is, a single quotation mark on it, Oracle Date field format is different, it is very wordy, there are only two ways to deal with:
A: Add a single quotation mark to
Basic rules
A. In the SPFile file, all parameters are optional, that is, you only need to list those parameters that need to be modified in the initialization parameter file, others to keep the default values.
The B.spfile file can contain only
There are many useful functions in the Oracle function library, such as Nvl,sign,round, which use more, the function is larger or decode this function. The use of this function is as follows:
Decode (expression, condition 1, result 1, condition 2,
Sequence in Oracle is the serial number, which automatically increases each time it is fetched. Sequence is not related to the table.
1, Create Sequence
First, create sequence or create any sequence permissions.
The statement is created as
1. Query this node and all nodes below this node:
2. All hierarchy relationships in the query node
SELECT rpad (', 2* (LEVEL-1), '-') | | Depname "Depname", Connect_by_root depname "ROOT", Connect_by_isleaf "IsLeaf", Level, Sys_
When designing a database table, it was found that Oracle did not have a set of self-adding primary keys, and Google learned that Oracle itself does not support the Sequence key, which needs to be implemented through sequences (Trigger) and triggers.
Data is a central part of the application, the program has broken the replacement machine can be republished, but once the data loss, resulting in loss will be irreversible, the program released to production, data backup is particularly important,
In the transfer database, data import, encountered a problem, is the table foreign key constraints exist, resulting in frequent error inserts, batch execution SQL statements are sequential execution, no way I had to manually input.
Then enter the
Sqlplus automatically runs two scripts at startup: Glogin.sql, login.sql these two files
The order of execution is
1. Default to find Glogin.sql file execution under $oracle_home/sqlplus/admin path
2. Default in the current path to find Login.sql
In a recent security audit, one of the requirements is:
File integrity detection The corresponding database is the installed program files, configuration files (excluding data files, log files)
That is, the need for regular database software
The database startup report ORA-600 kcrfr_update_nab_2 error due to the Controller drop line, resulting in the failure of the normal openDatabase version InformationORACLE v10.2.0.4.0-64bit Production vsnsta=0Vsnsql=14 vsnxtr=3Oracle Database 10g
Problem: An error occurs when a dependency is introduced.1. First we are going to download an Oracle driver jar package, Ojdbc6.jar (I have Oracle installed here, so in the Oracle installation directory F:\app\zyh\product\11.1.0\db_1\jdbc\lib The
Scenario: when the users table is in insert, update, delete, the changed id is recorded in the users_log table.Create a MySQL triggerTrigger Time: BEFORE, AFTERTrigger Event: INSERT, UPDATE, DELETENEW and OLD Keywords:| Action | NEW | OLD || --------
After 64-bit oracle is installed, when plsql is used for connection, the database option is blank. To solve this problem, the following records are generated:1. Download and install oracle 11g r2Http://download.oracle.com/otn/nt/oracle11g/112010/win6
Recently, we helped customers configure the odbc transparent gateway to access IPVs db in oracle through DB link.A simple record:(1) configuration of listener. ora and tnsnames. ora:[Wsj81 @ localhost admin] $ cat listener. ora# Listener. ora
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