To be honest, I don't know much about the syntax of Oracle databases. I think there are some things that we can use as long as we can. Let's talk about some minor problems encountered when I learned about it recently. I have used its visualization
Dbms_random.value in Oracle generates a number with a decimal part. to limit the range and obtain an integer, you should:
Floor (dbms_randm.value * 200 + 1 );
Select floor (12.23) from dual;Floor (12.23)------------12
Select round (2.34)
1. Stop database and CRS on both node$ Srvctl stop database-D mydb# Crsctl stop CRS
2. Turn off RAC
SQL> startupORA-29702 error occurred in cluster group service operation
Relink with the RAC off.$ CD $
Oracle has been installed countless times since the 7 version of the minicomputer 12 years ago and now 11 GB. However, there will always be some minor problems in the new environment and new configurations.
The system is installed with ubuntu8.10
Process related:
1. Find the SID of the current session, serial #
Select Sid, serial #
From v $ session
Where audsid = sys_context (userenv, sessionid );
2. query the OS process ID of the session.
Select P. spid "OS thread", B. Name "name-user",
Background: InWindows2003ServerUpperInstallNowOracle9.2.0.1.0. We plan to upgrade it to version 9.2.0.8 with the latest security patch.2008.1. Upgrade Oracle (administrator user permissions)(1) download the upgrade package from Metalink. The patch
Single-record functions in SQL
1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ("A") A, ASCII ("A") A, ASCII ("0") zero, ASCII ("") space from dual;
A A zero space------------------------------------65 97
/*Create a new tableUse the Course table as the template to create a new table course_new, which includes all records of the Course table.*/-- Delete an existing tableDrop table course_new;
Create Table course_new as select * from course;
Select *
1. What isOracleCharacter Set
The Oracle character set is a collection of symbols for the interpretation of byte data. It can be divided into different sizes and have an inclusive relationship. Oracle supports the national language architecture,
Oracle Database Table recovery mode This method restores data backed up in Table mode.
A. Restore all the backup dataTo restore data from a local file, run the following command:IMP icdmain/ICD fromuser = icdmain touser = icdmain rows = y indexes =
The hit rate is used to evaluate the data cache efficiency. You can obtain the hit rate by querying the V $ sysstat and $ buffer_pool_statistics views. This view canQuery the hit rate of each cache pool. The following formula is used to calculate
AIO causes sqlplus/As sysdba not to use 2008-04-23 not only: "AIO causes sqlplus/As sysdba to be unavailable"
I2 system maintained by the userOS: AIX 5.3ORACLE: 1, 10.2
Asked and checked the situation:
1. reinstalled the Operating System. Oracle
I. Basic information about database serversOS: RHEL 3, Oracle Database 10g Enterprise Edition Release 10.1.0.3.0
Ii. Backup ModeThe database runs in archive mode and supports multi-level Incremental backup of RMAN. The policy is as follows:Sets
Task 1: collect information and prepare for backup:
1. Create a temporary directory on the master node, suchMkdir-P/opt/Oracle/stage2. Create the same directory on the target nodeMkdir-P/opt/Oracle/stage3. On the master node, connect to the master
10.2.0.5 Patch Set-availability and known issues [ID 1087991.1]
-------------------------------------------------------------------------------- Modified 14-jun-2010 type readme status published
Known issues specific to the 10.2.0.5 database Patch
Originally, I only wanted to install an Oracle client with the imp/exp command. However, instantclient does not have these two commands and does not want to download 10 Gb client software of over 600 mb, which is also troublesome to install. The 10g
Select... for update Nowait
Nowait is optional.
The meaning of this clause is like its literal meaning, that is to say, the Select Operation currently executed is for subsequent update services in this transaction. At this time, the system will try
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