Http://lwl0606.cmszs.com/archives/Oracle-Split-string-Function. Html
Create or replace type varchar2varray is varray (100) of varchar2 (40 );/
Create or replace function sf_split_string (string varchar2, substring varchar2) return
Create or replace package body curspkg is procedure sp_page (p_pagesize in out int, -- number of records per page p_curpageno in out int, -- current page number p_sqlselect varchar2, -- query statement p_totalpages out int, -- total page
After the Oracle 10g Server Load balancer or cluster is complete, the client connection will fail to find the object, and sometimes it can be connected, sometimes it cannot be connected, and the client and server network can be pinged
First, I
Http://lwl0606.cmszs.com/archives/oracle-string-add-function.html
Add the DSPNAME values of the same Account as the following table.Account DSPNAMEL1 aaL1 bbL2 ccResult L1 aa, bb
L2 cc
Method 1: Use cursor in the function
Code highlighting
I spent more than an hour writing a little thing yesterday. Many people may have written it before, but let's take a look.
Backup, you can generate a DataBaseBak folder in the application folder, and save the dmp file in this folder by time. I set
Part 5 LONG typeLONG is a type of data that has been discarded, and the LOB type is its alternative. So we will discuss it after LOB.We only need a simple understanding. Why does ORACLE retain this type, just for backward compatibility? In the new
1: enable the Service:
OracleServiceACCP and OracleOraHome92TNSListener
2: Start sqlplus in the running state to enter the Oracle editing window.
3: Open Table space:
Create tablespace space name
DataFile 'e: Control name. dbf' size 10 M space
Oracle stored procedures return record sets. The key is to use a cursor. We certainly have a lot of contact with database cursor. We can use OPEN, FETCH, and CLOSE operations to control the cursor for various convenient operations. I will not repeat
Because the company requires traditional Chinese characters, the Chinese characters in the lower part are traditional.
Create or replace procedure send_mail (p_From IN VARCHAR2, P_To IN VARCHAR2, P_Subject IN VARCHAR2, P_Body IN VARCHAR2, P_Cc IN
Oracle user role
1. What is a role?In the previous sections, I described permissions and users. Slowly, you will find a problem: if a group of people have the same permissions they need, it will be inconvenient to manage their permissions. Because
Chapter 8: managing password security and resources
1.controlling account lock and password
sql> alter user juncky identified by oracle account unlock;
2.user_provided password function
sql> function_name(userid in varchar2
Chapter 2: BACKUP and RECOVERY
1. v$sga,v$instance,v$process,v$bgprocess,v$database,v$datafile,v$sgastat
2. Rman need set dbwr_IO_slaves or backup_tape_IO_slaves and large_pool_size
3. Monitoring Parallel Rollback
Chapter 1: Log Management
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter
9.Simple Integration,No associated database access
If you have several simple database query statements, you can integrate them into a single query (even if there is no relationship between them)
For example:
SELECT NAME
FROM EMP
WHERE emp_no. = 123
24.Use EXPLAIN PLANAnalyze SQLStatement
Explain plan is a good tool for analyzing SQL statements. It can even analyze statements without executing SQL statements. through analysis, we can know how ORACLE connects to the table, how to scan the
25.Improve efficiency with indexes
An index is a conceptual part of a table to improve the efficiency of data retrieval. in fact, ORACLE uses a complex self-balancing B-tree structure. data Query by index is usually faster than full table scan.
27.Basic table Selection
Driving Table is the first Table to be accessed (usually accessed in full Table scan ). depending on the optimizer, the selection of basic tables in SQL statements is different.
If you are using the CBO (cost based
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