Oracle Study Notes (4) PL/SQL

First, give a smallProgram: 1 Set Serveroutput On 2 Declare 3 Maxrecords constant Int : = 100 ; 4 I Int : = 1 ; 5 Begin 6   For I In   1 .. Maxrecords Loop 7 Insert  

Install and use 32-bit PLSQL-developer in a 64-bit Oracle database environment

After a 64-bit Oracle 10g Database is installed on the 64-bit win2003 operating system, you can connect to the database using PLSQL over the network, but the server cannot connect to the database.Solve the problem as follows:1. Install the 32-bit

Oracle foreign site collection

Oracle official site http://www.oracle.com/Oracle base campOtn.oracle.com http://otn.oracle.com/Metalink.oracle.com Co http://metalink.oracle.com/Ask Tom home http://asktom.oracle.com/asktomOracle documentation http://www.oradoc.com/index.html

Oracle 10 Gb reconstruction of EM dB control.

Oracle 10g R2 re-built Em dB control. If you have not modified the IP address or machine name after installation, you can skip steps 1 and 2.1. Drop configuration files and repository run:Emca-deconfig dbcontrol DB-repos drop 2. logon sqlplus as

Oracle Installation notes.

I have been using sqlserver and have no chance to access Oracle. In the past few days, I have installed Oracle 9i and installed it in my previous notebook, today, I installed it on my desktop again. An error was reported when the installation was

Oracle cross-database query and insertion)

During work, you need to import data from the gis_weichai_data_1s table in one database to the gis_weichai_data_1s table in another database. The database servers are all remote ! My implementation method is to use PL/SQL locally to operate two

(Mark) Oracle update statements

Basic update statements Update all records Update Set = Create Table TestSelect object_name, object_typeFrom all_objs;Select distinct object_nameFrom test;Update TestSet object_name = 'opops ';Select distinct

Oracle Data Type

1. Balanced It is used to store string or character data. The main types include varchar2, Char, and long. (1) varchar2 Used to store variable-length string or string-type data. during use, you must specify its maximum byte data. (2) Char It is

Oracle cold/hot Backup Recovery Method

Data export scriptExpdata. batSet ora_conn = exp oracle_usernamea/oracle_userapwd @ oracletnslinkname full = ySet now_date = % Date :~ 4,10%Set now_day = % Date :~ 12,10% Rd % now_date % _ complete/Q/sMD % now_date % _ completeCd % now_date % _

Natural join in Oracle)

Although natural join (natural join) is actually rarely used, it is actually very useful. If it can be used frequently, it is actually very convenient. A natural join is to search for fields with the same data type and column name in the two

Uninstall Oracle Database

Oracle databases are difficult to install, and it is not as easy to uninstall as Microsoft products. The control panel does not unmount oracle9.Program. You can choose "start"> "program"> "Oracle Installation products-universal installer" to go to

Oracle paging stored procedure with sorting

Create or replace procedure tablepage_select (v_page_size int, -- the size of a page of listV_current_page int, -- the current page of listV_table_name varchar2, -- the talbe nameV_order_field varchar2, -- the order FieldV_order_sequence varchar2, --

Oracle Psql Problems

1. View partition size Select segment_name, partition_name, Bytes/1024/1024 used_mbFrom dba_segmentsWhere segment_name in ('tableone ','Tabletwo ') 2. Compare the data differences between the two tables (Select * From Table1) Minus (Select

Oracle Lock Mechanism

The database uses a lock to ensure that at most one transaction can modify a given piece of data at any given time. Essentially, it is the lock mechanism that makes concurrency control possible. Oracle Blocking Policy:1. Oracle locks data at the

LINQ to Oracle is too abnormal: functions such as contains should be written in reverse mode:

Context: saasreportprocontext CTX = factory. saasreportprocontextfactory. getsaasreportprocontext (); There are three parameters: String reportname, string module, string type In LINQ to SQL VaR query = from o in CTX. reportorWhereO.

Common Data Dictionary query methods for oracle users

1. User 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

Reading Notes-Oracle character processing function list

| Connection or async string1 | string2Concat same as Concat (string1, string2)Initcap upper the first letter of all words in the string. initcap (string1)Instr: locate the substring, index from 1 instr (string1, substring2)Length: returns the

Install Oracle and import data to the database using impdp Import

This article describes how to export a database from a Linux server. Next, deploy the same library on a newly installed 64-bit Windows 2003 host. So we have all the procedures from installing Oracle> creating an instance> importing a database.

Oracle over (partition by) usage.

Oracle's analysis function over and window function eg: Related parsing: Table t_pi_part field ID code namevalue 1 222 avalue 2 222 bvalue 3 333 C add Row labels to the same part code, sort select P by ID. *, row_number () over (partition by P. code

Common Oracle commands 1

1 -- ------- 2 Same commands as SQL2000 3 Create tablename 4 Delete table drop Table Tablename 5 There is also alter Insert   Into Update and so on. 6 To delete a table, directly Delete tablename. 7 --

Total Pages: 2147 1 .... 1923 1924 1925 1926 1927 .... 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.