Based on the previous time, add null value judgment:
1. Direct judgment
Select case when S1 is null then S1 when S2 is null then S1 when S3 is null then greatest (S1, S2) When S4 is null then greatest (S1, S2, S3) when S5 is null then greatest
Many people are working on ASP. net + Oracle development will encounter connection problems, the prompt "unable to load DLL (OCI. DLL) ", but this file exists in the system. Many people are overwhelmed by this. I have seen many posts asking for help.
Public Network: provides external services for connecting clients, application systems, and databases. In addition to database maintenance, users seldom directly connect to the database,A common practice is to connect a user to a database through
Usually used to MS-SQL2000, Meng a use of Oracle is really a little uncomfortable. Today, I wrote a query statement. After writing it, I found it was too long. In terms of performance and convenience, it is decided to pass it to the stored procedure
TypeTt_typeIs Table Of Varchar2(32)Index By Binary_integer;
--Use","Converts the split string to an array and returns the number of arrays,
-- Lei E-mail: Landgis@126.com, yanleigis@21cn.com 2002.06.03 prepared
FunctionToarray (liststrIn Varchar2
Modify the field name in Oracle after Oracle9i
Alter table [Table name] rename column old field name to new field name;
Test:
Desc tbl_menu;Name type nullable default comments------------------------------------------------Menuid number (20)Menuname
-- 1. ASCII returns the decimal number corresponding to the specified character;Select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') SpaceFrom dual;-- Return Value: 65 97 48 32
-- 2. the CHR returns an integer and the corresponding
1. Oracle startup and Shutdown1. In a single-host environmentTo start or shut down the Oracle system, you must first switch to the Oracle user, as shown below:Su-Oracle
A. Start the Oracle SystemOracle> svrmgrlSvrmgr> connect internalSvrmgr>
(1) privileges:Privilege is the power to execute a special type of SQL statement or to access another user's object. There are two types of privileges: SYSTEM privileges and object privileges.
System privilege: it is the right to execute a special
First, perform some basic settings.
1. Input in SQL * Plus
SQL> connect sys/sys as sysdba;
SQL> alter system set job_queue_processes = 6; -- this parameter must be greater than 0 during automatic data collection.
System altered
SQL> alter system
Settings of the remote_login_passwordfile parameter in the Oracle database
The Oracle utility orapwd command can be used to create a password file. The command has three parameters:
C:/> orapwdUsage: orapwd file = Password =
Recently, due to the time-frame addition and subtraction tests, I found some time addition and subtraction algorithms on the Internet, which can solve the pressing problem and help more Oracle beginners!
AdditionSelect sysdate, add_months (sysdate, 1
Source: http://blog.ixpub.net/html/58/12945358-420019.html
ToRedHatAs4 andOracle10g. After installing Oracle, use sqlplus to start oracle. After starting Oracle, follow the steps below to start it.
Dbstart and dbshut are available in $ ORACLE_HOME/
Step by step, no error will be reported
IP address planning
192.168.8.241
192.168.8.242192.168.8.248192.168.8.249
Rac1-> export lang = en_US.UTF-8
VI/etc/sysconfig/network-scripts/ifcfg-eth0VI/etc/sysconfig/network-scripts/ifcfg-eth1[Root @ rac2 ~] #
--------- Management of asm (Management of Shared disks)1. Manage the ASM in instance mode. Before starting the database, you must first start the ASM instance. After the ASM instance is started, the ASM disk is mounted.
--------- Install the ASM
Cause? -? The plug-in failed in its perform MethodAction? -? Refer to the logs or contact Oracle Support Services.Log File Location/U01/APP/orainventory/logs/installActions2013-01-04_08-37-53PM.log
/U01/APP/orainventory/logs/installActions2013-01-04_
DDL statementDatabase objects: tables, views, sequences, indexes, synonymsNaming rules for database objects:-It must start with a letter.-No more than 30 characters-A-Z, A-Z, 0-9, _, $ ,#-Duplicate names of objects in the same schema and other
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