Procedure returns the recordset:
CREATE OR REPLACE PACKAGE pkg_test
As
TYPE Myrctype is REF CURSOR;
PROCEDURE Get (p_id number, p_rc out myrctype);
End Pkg_test;
/
CREATE OR REPLACE PACKAGE body pkg_test
As
PROCEDURE Get (p_id number, p_rc out
Oralce automatically backs up and deletes 5 days before backup in Linux Export script: Export oracle_base=/opt/oracle ---Installation path Export oracle_home=/opt/oracle/920 ---Products catalog Export path=/ora/bin:$
Oracle9i to the Chinese character sorting default Pinyin sort, but I recently sent a new arrangement of the results are not accurate, through the Internet to find, the solution is as follows:
Method 1: Set the environment variableSet
How do I see the current number of connections to Oracle? Just use the following SQL statement to query.
SELECT * FROM v$session where username
Is isn't null Select Username,count (username) from
V$session where username is isn't null GROUP by
several ways to start \ Close Oracle Database
There are a number of ways to start and close Oracle.
Here are only 3 ways to do this:
L Sql*plus
L OEM Console
L Windows Console
1. Take Sql*plus as an example:
A. Preparation
First, we use Sql*plus to
Oracle performance topics are very broad and there are many books on the market that specifically describe Oracle tuning. The pursuit of performance is endless, need long-term unremitting efforts, but to avoid the problem of performance is not
/** * Deletes the name of the field passed in to all tables in the current database, and the record of the corresponding tagged value * MR_CHENPH (2012-1-12) * Invocation Way Select Deletetag (' Isdel ', 1) from Dual * to The above statement
Oracle Increase, delete, change, check operation
1. SelectSelect distinct *| field | expression as alias from table table aliasselect * from table name; Query All field information for all records in a tableselect column name from table name;
Today in the virtual machine in the centos6.3 system installed Oracle 11g out of many problems, first record the interface garbled problem bar.
This interface appears during /runinstaller installation:
Zysong.ttf download is an Oracle font
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
To create a process script for a package declaration:
CREATE OR REPLACE PACKAGE "Com_bos" is-------------------------------------------------------------------------Description: --Constructing SQL statements of type B
@echo Start Backup ....
@echo This program uses ZIP compression, after the backup of the file can be used RAR or zip decompression.
Set INSTANSE=ORCL
Set Username=user
Set Password=password
Set Extname=rar
Set year=%date:~0,4%
Set
Guide:
Part I: The following steps complete the process of creating a job:
Part II: Job Related knowledge:
Part III: Practical application
Discovery: Delete jobs must use the job owner to do, Sys can not delete other people's job. (Understand this
The Oracle move Redo log method is simple, and here's a quick way to explain the Oracle Mobile redo log file, and if you're interested in Oracle Mobile redo logs, look.
$ Sqlplus '/as sysdba '
#关闭数据库.
sql> shutdown
Prerequisite: Before making the insert data, if it is not a production environment, please remove the index and constraint of the table, and then build the index and constraints after the insert completes.
INSERT INTO TAB1 select * from TAB2; Commit
Partial commit inserts in Oracle to prevent redo from consuming too much to commit transactions in batches: The following are three different pl/sql bodies:
1, write a simple pl/sql block to simulate the case-by-line submission, pay attention to
Oracle provides internal functions:
numtodsinterval (,), X is a number, add and subtract values, can be decimal and fractions, such as 1,1/2, 0.05 C is a string, for the addition and subtraction units, commonly used units have (' Day ', ' hour ', '
first, the partition table
Several categories of partitioned tables:1, Range (range) partitionIs the application of a wide range of table partitioning method, which is the range of the value of the column as a partitioning of the conditions, the
I have a table table_a inside there is a field where the user's number is saved, and the number is separated by commas, for example: 379,380,386,390,503 I do query select * from user where user_id in ( 379,380,386,390,503); is correct. But when I
Younger brother Win7 system, my colleagues in the evening to visit my PC database is not successful, according to the method provided online, set up a firewall, put access to 1521-port inbound and outbound, the result is not even.
Painful old long
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