The workaround is as follows:
1: Check V$db_object_cache
SELECT * from V$db_object_cache WHERE name= ' crm_lastchginfo_day ' and locks!= ' 0 ';
Note: Crm_lastchginfo_day is the name of the stored procedure.
Found locks=2,
2: Identify the value
' Open the Database
Public Sub openoradb ()
On Error GoTo Toexit
Oradb_open = False
Set oradb = New ADODB. Connection
Oraconstr = "PROVIDER=ORAOLEDB.ORACLE.1; Password= "& Strorapwd &"; User id= "& Strorauser &";D ata source= "& Oradbnetname &";
1, the primary key defined as the automatic growth identifier type
In MySQL, if the primary key of the table is set to the Auto_increment type, the database is automatically assigned the primary key. For example:
CREATE TABLE Customers (ID int
To view the SIDs and serial# for the current session:
Sys@orcl>select sid,serial#,status from V$session where sid=userenv (' Sid ');
SID serial# STATUS
---------- ---------- --------
3 ACTIVE
To view the SPID corresponding to the current
Today's optimization has been transformed to the optimization Wait (waits), in fact, the most fundamental point of performance optimization is also focused on Io, which is the most important aspect of performance, it is a good idea to wait in the
In 10g, Oracle has added dbms_monitor packages, making it easier for users to set up trace and statistical information.
This article describes the process of statistical correlation.
In addition to providing trace opening and closing, the
4.4 Oracle Table Space Management
The ORACLE table space files are placed in directories such as $oracle_home/oradata/opt/oracle/product/10/oradata
Oracle table space supports hot swap
That is, when the Oracle runtime discovers that the
1, install GLIBC Compatibility Pack, find the following RPM file installation
compat-glibc-6.2-2.1.3.2.rpm
compat-libs-6.2-3.rpm
compat-egcs-6.2-1.1.2.14.rpm
2, modify your. Bash_profile Add the following two lines
Export ld_assume_kernel=2.2.5
Oracle Server Automatic Backup1.$sqlplus/nolog$conn sys/as sysdbasql> Create directory Expdata as '/home/oracle/oraclebak ';D irectory created. Sql> Grant Read,write on the directory expdata to public; Sql> exit2.$mkdir/home/oracle/oraclebak3.
We have an Oracle course, I think the code instructions are more complex and more, here are some knowledge points1. View the name and path of the current database control file.Select from V$controlfile;2. View the data file information for the
Optimization of SQL statements in Oracle Learning discourse① when querying with a SELECT statement, do not use "*" instead of all column names, as this will present an analytic dynamic problem for the Oracle system. The Oracle system translates "*"
1. Querying all Table spacesSelect Dbf.tablespace_name,Dbf.totalspace " Total (M)",Dbf.totalblocks as total block number ,Dfs.freespace " Total remaining (M)",Dfs.freeblocks " number of remaining blocks ",(dfs.freespace/dbf.totalspace) * " idle
12.1.0.2 has been released for some time, with the increase of users, the current version of 12C stability, as well as all aspects of the functionality, get everyone's approval.Many users, need to upgrade the database from a low version to 12C, this
CreateType Tabletype is Table of varchar2( the);CREATE OR REPLACE FUNCTIONSplit (P_list CLOB, p_sepVARCHAR2:= ',') RETURNTabletype pipelined/************************************** * name:split * Function: Returns the table type after the string is
Adding redundant control files is naturally a layer of security for the database, after all, the single link control file is a little bit dangerous, after all, is the hub of the library file. Needless to say, into today's theme, for RAC nature can
Recently in the project to find a problem, Oracle in the query paging data, there are several data repeated query, and a few data in the time of pagination disappeared. Baidu has discovered that when querying data, ORACLE returns rows that are not
SQL language is a high-level structured query language, which greatly reduces the burden on users. Currently the query language is divided into four types, data definition language (DDL), Data Manipulation language (DML),Transaction Control Language
1.1 Unpacking the installation packageORACLE11GR2 Installs as two installation packages, after all decompression, you need to combine the contents of the two installation packages to install
oracle version
linux64_11gr2
1. Locate the installation directory for Oracle. such as: C:\oracle\product\10.2.0\db_1\network\ADMIN2. Find the Tnsnames.ora file3.The Chinese part is the part that needs to be modified, in addition to the first "local instance name", other needs
Essentially no difference.Just a function like: Only one variable can be returned with a limit. A stored procedure can return more than one. Functions can be embedded in SQL and can be called in Select, and stored procedures do not work. The essence
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