16:20 2013/7/7Oracle LoginAdmin login Sqlplus sys/root as SYSDBA (password Authentication) This root is the first password you enter to install the database Sqlplus/as SYSDBA (host authentication requires that the system user is the DBA user)Normal
Tag: c A CTI Line name table1.SELECT * FROM (SELECT * to tablename ORDER by Dbms_random.value) where rownumNote: Dbms_random is a package that can generate random numbers or strings. Value () is the most commonly used, the use of value () generally
Here is a test, in which the library creating the database link is XJ (WINDOWS 2003 Oracle 10g 10.2.0.1), the linked library is Dmdb (LINUX AS5 Oracle 10g 10.2.0.1 RAC)Part I: How to create a DblinkThere are two ways to create Dblink:1. Configure
Set Archive mode (Mount status)ALTER database ARCHIVELOG;//Close the databaseshutdownImmediate//start Database to mount State startup MountAlter DatabaseArchivelog;//View archive Status ArchiveLoglist; SQL>ArchiveLoglist; database log mode archive
The Oracle garbled problem is generally caused by inconsistent Oracle character set settings and operating system character set settings, which have to mention two operating system environment variables, LANG and Nls_langLang is a set of languages,
Oracle user is a database object, the user all operations by default in their own mode, the schema is a user owned database objects collection, each user has his own mode, the user and the mode is one by one corresponding to the pattern of the same
Example (instance)An instance is a non-fixed, memory-based basic process and memory structure. When the server shuts down, the instance does not exist.Databases (database)Database refers to fixed, disk-based data files, control files, log files,
Long time no Oracle, this time because of a project needs, and re-review of Oracle.The version of Oracle I am using is Windows Oracle 11G_R2.First, let's start with the installation. This is not a big problem, mainly in the installation time. There
The permission system of Oracle database is divided into System permission and object permission. System permissions (Database system privilege) allow the user to execute a specific set of commands. For example, the CREATE TABLE permission allows a
If you accidentally overwrite the previous stored procedure, it's time to flash back, and the longer it is, the less likely it is to flash back. The principle is very simple, the definition of the stored procedure is a data dictionary, modify the
This is a few days of the Oracle database, probably used by SQL Server, it is not easy to feel. PL's interface-friendliness is far worse than SQL Server, since it has acquired pl.Why not give it a little bit of a job? Various inconveniences.
1. Partitioning technology2. Indexing technology3. Temporary table Technology--Create a transaction-level temporary table, the data will be lost after commit, but the table structure still existsCREATE GLOBAL Temporary TABLE
Lab environment:
Operating System: Oracle Linux Server release 5.7 64 bit
Database Version: Oracle Database 10g Release 10.2.0.4.0-64bit Production
Case study:
To test and verify the validity of the backup, you need to restore the backup set of
Introduction: In MyBatis, when you want to insert data in Oracle, the primary key value is returned, instead of the number of inserted data...
Environment: MyBatis 3.2, Oracle, Spring 3.2
SQL Snippet in XML Configuration:
SELECT
After several years of death in Oracle, I am familiar with different books. Many of my friends asked me to recommend some Oracle books. I will share my views below.
In fact, at different stages, different books will have different influences on you,
1. Create a userCreate user @ username identified by @ passwordExample: create user aobama identified by futureA user named "aobama" is created, and the password of this user is "future ".Note: The Administrator (DBA) permission is required for
I. Users
View the default tablespace of the current user
SQL> select username, default_tablespace from user_users;
View the role of the current user
SQL> select * from user_role_privs;
View the system and table-level permissions of the current
Whether you do interpolation or other operations, an error is prompted that the ora-00054 resource is busy.
There are two examples I have encountered: one is that the process has been killed but not completely released. The solution is as follows:
Limited result set
In Oracle, it is very useful to use the ROWNUM field. Generally, you can use it to do two things:
1. Execute the top-N query. This is similar to the LIMIT Syntax of other databases. (Search for the first n pieces of data)
2.
Control File
-Small binary files
-Define the current status of the physical database
-The loss control file must be fixed.
-Maintain database integrity
-Requirements:
1. The database is in the mount state when it is started
2. Database
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