1. ---- query the SQL statement being executed by a sessionSQL> select S. Sid, SQL _text from V $ session S, V $ SQL QWhere S. SQL _address = Q. Address and S. SQL _hash_value = Q. hash_valueAnd S. Sid in (107, 44803) and S. Serial # In (53098,54004
I just got started with Oracle. Below are some simple configurations. I hope it will be helpful for beginners. I hope you can give some comments.
1. Create a database
1) start-ProgramNext, find Database Configuration assistant to enter the
You can easily create a general script by replacing the variables.
Code:
Insert IntoEmployees (emp_name, emp_age, emp_dept)Values('& Amp; empname',&Empage,&Empdept)"&" Is used to add identifiers to replace variables. Note that if the column data
Em configuration command ==============================
Create an EM DatabaseEmca-repos createRebuilding an EM DatabaseEmca-repos recreateDelete An EM DatabaseEmca-repos dropConfigure Database Control for the databaseEmca-config dbcontrol
ArticleDirectory
Restrictions on using the transfer tablespace:
Starting from 11 GB, Oracle supports cross-platform table space transfer.View the list of supported platforms. If the endian format of the source and target databases is
In Oracle databases, the constraints have the following two parameters:Initially (initially immediate or initially deferred)Deferrable (deferrable or not deferrable)1st parameters, specifying the validation time of the constraints by default (at the
First, check which tables are locked.
Select B. Owner, B. object_name, A. session_id, A. locked_modeFrom v $ locked_object A, dba_objects BWhere B. object_id = A. object_id;
Owner object_name session_id locked_mode---------------------------------
When you want to drop a table, if the action to delete the table will cause a conflict between trigger and constraint, the system will receive an error warning and will not allow execution .. For example, if you have an employee basic data table,
Confusing terms:Db_name:The unique identifier of a database (Oracle database), which is the Oracle database described in Chapter 1. This expression is sufficient for a single database, but with the popularization of distributed databases composed of
1. User failure During the last installation of a railway system, the Oracle 11g database was found to have a user expiration date. Check the relevant ORACLE data and check whether there is such a problem. [Cause/trigger factor] It is determined
Connect using the system. Data. oracleclient. dll component:
First, configure the webconfig file;
Then you can add a reference to system. Data. oracleclient. DLL to write it on the page.CodeUsing system. Data. oracleclient;
Common
1. Download the instant client from the Oracle Website:
Http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/index.html
Select different Instant Client versions based on your operating system
The downloaded file is a
Http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
1.The following dll must be included during release.Http://www.189works.com/article-58367-1.htmlOr download the xcopy version of Oracle odac and run install. bat all c: \
From: http://www.dezai.cn/blog/article.asp? Id = 248
OracleProgramA package consists of a packet header and a package body (also known as a package description and a package body). It is a type of variable cursor that combines multiple programmer
/*There are four functions that support regular expressions in Oracle:1. regexp_like: similar to like2. regexp_instr: similar to instr3, regexp_substr: similar to substr4. regexp_replace: similar to replaceThey are used in the same way as Oracle SQL
1. select an appropriate Oracle optimizer
There are three optimizer types in Oracle:
1. Rule (Rule-based) 2. Cost (cost-based) 3. Choose (selectivity)
Set the default optimizer. various declarations of the optimizer_mode parameter in the ora file,
Recently, the company selected a brand new database system as the development platform for projects. I am also working hard to adapt to the development and use of this database. Many users (including our programmers) are confused about which
Oracle-based developmentData Connection Failed. Check whether the database has started and the badimageformatexception is thrown when the Oracle client is loaded. if the 32-bit Oracle client component is installed and runs in 64-Bit mode, this
First, it is reported that the connection cannot be connected by modifying the SID in the listening file and the SID in the TNs.
Then, you cannot log on to the Administrator as a common user, but cannot access any tables.
View Error Log prompts
Check whether the system is started with pfile or spfile.Select isspecified, count (*) from V $ spparameter group by isspecified;If true exists in isspecified, the specified configuration is performed with spfile.If all values are false, pfile is
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