Definition:
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 specifies the name of the stored procedure and gives the parameter, if the
1. Installation package: (installation package is a bit large, and so on when the internet is good to upload to the network disk, if necessary, you can first private chat to find me)2. Download good installation package, after decompression you will
The last time I met a small problem, it is precisely the design flaw, first see where the problem is,
3, for the Dept and the EMP table, query the results of the following format and requirements by department number and wages in descending order. "
Oracle provides a Dbms_scheduler package for creating and managing jobs, while providing dba_scheduler_jobs (which is available under both normal and SYS users) for query job details.
To create a simple job, you can use the following statement,
Oracle database Chinese phonetic sorting problem, nls_sort setting
Before Oracle9i, Chinese is sorted according to binary encoding. In oracle9i, according to pinyin, radical, stroke sorting function.
1, set the Nls_sort parameter
SELECT *
From (SELECT *
From (select/*+ index_desc (t,idx_dec_1) * *
t.*, RowNum RN
From T_fxzf T
where/*reachdate >=20150516 and reachdate T.detectstationtype in (2, 3, 1))
where RowNum
where RN > 20;
This is a relatively standard Oracle
First, create the directory folder for the exported data
Create or replace directory Oradata as ' E:\data ';
Note:
(1) The Data folder needs to be created by itself under this disk.
(2) If the prompt permission is insufficient, need to authorize
Add the following six fields to each table
select ' ALTER TABLE ' | | object_name | | ' ADD (created_by VARCHAR2);
From User_objects T
where object_type in (' TABLE ')
Union
Select ' ALTER TABLE ' | | object_name | | ' ADD
BIEE is Oracle's Business Intelligence Enterprise Enhancements (EE) is a comprehensive enterprise BI product that delivers complete BI functionality, including interactive dashboards, fully ad-hoc proactive intelligence and alerting, enterprise and
DBA: With full privileges, the system has the highest privileges, and only DBAs can create the database structure.
RESOURCE: Users with RESOURCE permissions can create entities only and cannot create database structures.
Connect: Users who have
--================ Oracle ADG operations and Maintenance ================--======== Test Log Transfer ========1. On primary, view the last archived log, Force log switchoverALTER SESSION SET nls_date_format= ' dd-mon-yyyy HH24:MI:SS ';SELECT
A ORA-01031 solution appears when using sys users to log in as administrators
1. Start the database with a local system user and view the configuration parameters by name.
Show parameter Password
Check the exclusive parameter status. If
Today, I developed a small Oracle Database operating system with C #.ProgramIt runs well on the local machine and runs on the machine of a colleague,
The program automatically exits, and no error is reported. After checking that the. NET Framework
Using system;
Using system. Collections. Generic;
Using system. text;
Using system. Data. oracleclient;
Using system. Data;
Namespace oracleopdemo
{
Class Program
{
Private Static string connstr = "Data Source = oratest; user id = m;
1. Software Download:
Address: http://www.oracle.com/technetwork/cn/database/10203vista-088351-zhs.html
An Oracle account is required for downloading. If you have not registered one, you can.
2. software installation:
1) open the file "\ stage \
1. Import the required jar packages, find ojdbc14.jar and nls_charset12.jar in \ JDBC \ Lib of the Oracle client installation directory, and add these two jar packages to the project.
(A simple method is to create a new directory libs in the project,
Lowercase letters to uppercase letters: Upper ();
Uppercase to lowercase letters: lower ();
String truncation function: substr (STR, A, B );
A, B is an integer, STR is a string,
Truncates string 'str' from 'A' and searches from the right to the left
Package definition:
Create or replace package mytest
Is
Type out_cur is ref cursor;
Procedure writecount (codeid in nvarchar2 );
Procedure testsandyinsert (codeid in nvarchar2, counts out number );
End mytest;
Definition of stored procedure:Create
/**** @ Param stname: do not create a sequence table. Separate multiple tables with commas (,).**/Create or replace procedure proc_create_seq_trig (stname in varchar2)AsStrsql varchar2 (4000 );Tablename varchar2 (50 );PID varchar2 (50 );Pidtype
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