Oracle Stored Procedure Learning

Java codeCreate or replace procedure stored procedure name (param1 in type, param2 out type) As Variable 1 type (value range ); Variable 2 type (value range ); Begin Select count (*) into variable 1 from Table A where column name = param1; If

Decode in oracle

DECODE (condition, value 1, translation value 1, value 2, translation value 2,... value n, translation value n, default value) Value indicates any column of any type in a table or any result obtained by calculation. When each value is tested, if

How to change the Oracle10g Port

Generally, the default port 1521 after Oracle is installed is used for security purposes. How to change.1. view the listening port:C: \ Documents ents and Settings \ mengzhaoliang> lsnrctl statusLSNRCTL for 32-bit Windows: Version

Check whether Oracle is 32-bit or 64-bit

Method 1: Use sqlplus64-bit:[Oracle @ qs-wg-db2 ~] $ Sqlplus/as sysdba; SQL * Plus: Release 10.2.0.5.0-Productionon Sun Sep 25 08:57:22 2011 Copyright (c) 1982,201 0, Oracle. All Rights Reserved.  Connected:Oracle Database 10g Enterprise

Oracle 10 Gb asynchronous calling of Stored Procedures

What is DBMS_JOB?DBMS_JOB is an expert package provided by Oracle database.It is mainly used to run programs in the background and is an excellent tool in the database. It can be used to automatically adjust scheduling routine tasks, such as

ORACLE tree Query

When I was dealing with the problem in CSDN yesterday, I found a syntax connect_by_root, which was visible and never seen before. I often used connect by, so I opened the document and learned it again. First, let's look at SCOTT's data in the

Oracle archiving and non-archive Switching

First, you can use the following statement to view the existing database mode:Select name, log_mode from v $ database;You can also use the following statementArchive log list; (This method requires the as sysdba)SQL> archive log listDatabase log

Oracle group obtains the first data entry

  Group and sort multiple data and obtain the first record in each group.   SQL code SELECT * FROM (SELECT ROW_NUMBER () OVER (partition by order by DESC) lev, .* FROM ) WHERE lev_= 1 Order by DESC   SELECT * FROM (SELECT ROW_NUMBER () OVER

New Oracle11g parameter memory_target

Oracle9i introduces pga_aggregate_target to automatically adjust the PGA;Oracle10 introduces sga_target to automatically adjust SGA.Oracle11g combines these two parts and introduces memory_target to automatically adjust all the memory. This is the

Oracle programming Art Study Notes (23)-Section

  Segments are the database objects that occupy the storage space. Each object that occupies the storage space is stored in a segment, such as tables, indexes, and rollback segments. Segment type 1) Table segment 2) table partition or

Detailed description of Oracle utl_file_dir Parameters

  1 UTL_FILE_DIR Parameter Definition UTL_FILE_DIR is a "static parameter" in Oracle. You can set one or more paths. It is used to specify the path when file I/O operations (utl_file package can be used) are performed in PL/SQL. UTL_FILE_DIR is a

Add fields in SQL (some can only be run in ORACLE)

Add fields in SQL (some can only be run in ORACLE) [SQL] add field alter table table_name add column_name varchar (200) delete field alter table table_NAME drop column column_NAME modify Field Type alter table table_name alter column column_name new_

Oracle Control File Operations

Oracle Control File OperationsThe control file is the link connecting the instance and database. The structure information of the database is recorded. The control file is a binary file. The status of the current database is recorded. There can be

Oracle functions for obtaining the start time and end time of the last ten days

Oracle functions for obtaining the start time and end time of the last ten days [SQL] -- get create or replace function fd_lastxunstart (rq in date) return string is refstr varchar2 (50); v_rq date; begin -- get date v_rq of the last ten: = trunc

ORACLE --- add control file

ORACLE --- adding control files will be unfamiliar without any technical skills. ORACLE control files are crucial. Next I will write an article on how to add control files to ORACLE. First, view the information of the current control file: 1SQL>

WITH + HInt MATERIALIZE is not necessarily valid

WITH + HInt MATERIALIZE is not necessarily valid. It must be materialized after multiple calls. It is called only once, and MATERIALIZE syntax is useless: MATERIALIZE Description: indicates that the optimizer materialized the inline view-a temporary

RMAN multiple backup scripts

1. Introduction to related parameters: the command line parameter description TARGET is a connection string defined by the TARGET database. when connected to a TARGET database, it is a continuous SYSDBA connection. This user has the right to start

Character Set garbled Summary

Character Set garbled summary query current database Character Set BYS@bys1>select userenv('language') from dual;USERENV('LANGUAGE')----------------------------------------------------AMERICAN_AMERICA.AL32UTF8BYS@bys1>select * from

PL/SQL remote database connection exception handling

PL/SQL remote database connection exception handling1. An error occurred while parsing the specified connection identifier. Solution: configure the TNS_ADMIN environment variable with the variable value tnsnames. ora path 2 · I/O error 123 solution:

Oracle Time Processing Method

Oracle time processing method: common date functions 1. Sysdate current date and time SQL> Select sysdate from dual; sysdate--------21- June-052. Last_day SQL> Select last_day (sysdate) from dual; LAST_DAY (s--------30- June-053. Add_months (d, n)

Total Pages: 2147 1 .... 1772 1773 1774 1775 1776 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.