When multiple stored procedures in Oracle use public constants, we can create a dedicated package to manage all constants. The definition example is roughly as follows:
Create or replace package global_constant is/* Numeric constants *//* Ratio
I'm dizzy. It's really concise to add this one.
Private void displaybutton_click (Object sender, system. eventargs E){// Clear the data in listviewListview1.items. Clear ();
// Establish a data connectionOracleconnection conn
ORA-12500:
When the service is started, an error is reported in the background, probably because the corresponding database service is not started.
ORA-12154:
Service name cannot be processed by TNS:
Install only one version of the Client1.
1. Write a connection directly in a fixed way in a Java class, for example:
Import Java. SQL. connection; import Java. SQL. drivermanager; import Java. SQL. sqlexception;/*** encapsulate Common Database Operations * @ author administrator
A data synchronization function is required in the recent project to regularly synchronize the information in a database to another database. In this way, the storage process trigger timer and dblink are used.
I have never written about the storage
Instr (source string, target string, start position, matching serial number)
In Oracle/PLSQL, The instr function returns the position of the string to be truncated in the source string. It is retrieved only once, that is, from the start of the
Group and sort multiple data and obtain the first record in each group.
SQL code
Select *
From (select row_number () over (partition by order by DESC) lev,
.*
From )
Where lev_= 1
Order by DESC
Select *
From (select row_number () over
Introduction:During the development process, there are often modules that need to prepare reports or data statistics. Here we will record the oralce functions that have used to prepare reports during the development process.
Several principles for
Recently, the company power failure, found that Oracle Data under Linux and the listener after the normal start, the client PLSQL still cannot connect to the server, reported ORA-12514 error,
It is found that the Oracle server listens to the
The storage hierarchy in Oracle is as follows:
(1) A database consists of one or more tablespaces.
(2) A tablespace consists of one or more data files. These files can be cooked files in the file system, original partitions, database files managed
Summary of rownum usage in Oracle!For the rownum problem in Oracle, many documents do not support>, >=, =, between... and. The preceding symbols can only be used (,> =, =, .. and will prompt SQL syntax errors, but often cannot find a record, and it
**
We recommend that you use DBMS_Scheduler (note)
/* Query: Select job, broken, what, interval, T. * From user_jobs t; the unique identifier of the job, whether the automatically generated broken is running, N; run; Y: stop what is the name of the
In Oracle, an application of row and column Conversion
The table structure is omitted. The SQL statement is as follows:
select z.* from (select row_number() over(order by bs_cnt desc) rn, inn2.* from (select distinct sum(bv_sum) over(partition by
Get table:Select table_name from user_tables; // The table of the current userSelect table_name from all_tables; // tables of all usersSelect table_name from dba_tables; // includes the system tableSelect table_name from dba_tables where owner =
I. Overview
Two data providers accessing ORACLE: lmicrosoft. NET Framework data provider for OracleOracle. NET data providers are provided along with. NET Framework 1.1. If you are using. NET Framework 1.0, you will need to download. Net managed
Yan Bin (write to me)
Original blog (http://blog.csdn.net/binbinxyz), reprint please indicate the source!
1. Export the database
1. Completely export the database test, username Scott password tiger, and export it to D: \ testdb. dmp:
Exp
Sometimes the database can be connected, and sometimes the database cannot be connected.
It may be that the current number of connections in the database has exceeded the maximum number it can process.
Code highlighting produced by Actipro
Basically, the syntax used is as follows:A. Obtain the syntax for creating a single table and an indexSet heading off;Set echo off;Set pages 999;Set long 90000;Spool Dept. SQLSelect dbms_metadata.get_ddl ('table', 'dept', 'Scott ') from dual;Select
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