Start --> Oracle InstallationProgramAccording to --> net configuration Assistant
Select Listener Configuration --> next --> Add (generally, the server configuration may cause problems, so Add a new listener) --> Add a listener name (the name of the
The table size has two meanings. One is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:Select segment_name, bytesFrom user_segmentsWhere segment_type =
When I was writing SQL statements recently, I encountered two problems:1) ORA-01795: Maximum number of expressions in a list is 1000Cause: the SQL statement select pallet_id, box_id, status from sd_current_box where pallet_id in ('"+Pallets+ "');
To simplify the SQL statement, you can divide the statement into several views for operation, but the created attempt will be saved as an object in the database. However, some statements are often used only temporarily, so there is a with as
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
Function open_cursor: open a dynamic cursor and return an integer;
Procedure close_cursor (C in out integer); closes a dynamic cursor. The parameter is the cursor opened by open_cursor;
Procedure parse (C in integer, statement in varchar2,
ArticleDirectory
Oracle has many advantages, but if it is improperly used, it cannot take advantage of it. Here is my little experience in Oracle development, share with you.
Oracle has many advantages, but if it is improperly used, it
To obtain a data set from Oracle procedure, the ref cursor method is usually used. To obtain this cursor, there are several ways:
1. dynamic SQL return:
In this case, procedure operations are usually relatively simple. For example, you can use a
1. Select nvl (c_remark, CHR (0) into: srateFrom t_comm_codeWhere c_cde = trim (: stext2) and rownum = 1;
Nvl is a function that returns the value of the second parameter if the first parameter is null. Otherwise, the value of the first parameter
Differences in Oracle
In SQL Server:Essentially, there is no difference. Only functions are as follows: only one variable can be returned. The stored procedure can return multiple objects. Functions can be embedded in SQL and called in select, but
About Instant Client
Oracle Instant Client is a simple client provided by Oracle and supports multiple platforms. It can be downloaded from the Oracle website.Http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/index.html
Let's popularize the process of using expdp to back up the Oracle database.
Export the database on server a (centos): (all SQL statements that can be executed in server sqlplus can be remotely executed in client PLSQL. Can sqlplus be operated
The scenario is as follows:
-- Creation type) Create Or Replace Type list_obj Is Table Of Number ; -- Create Table Structure Create Table Test (name Varchar2 (30 ) Primary Key Check (Regexp_like (name, ' ^ ([A-Z] | [0-9] |
I am new to the company and can only learn from scratch. There is no way. Now I will take my notes. Using system. Data; Using system. Data. oracleclient; ...... private void button_click (Object sender, system. eventargs e) { string
You need to back up the Oracle database automatically on a regular basis and want to use the simplest tools and methods.
Timing: Use the scheduled tasks that come with windows to complete.
Backup: Use the Oracle export tool export. The command
When connecting Oracle using. NET 2.0:In the 1.1 era, both using system. Data. oracleclient and. NET 2.0 were improved to dbprovider (system. Data. Common,It looks pretty, but it's okay when I use the Oracle stored procedure to return the result set.
1. Connect to the database
C: \ Documents ents and Settings \ Administrator> sqlplus/nolog
SQL * Plus: Release 10.1.0.2.0-Production on Saturday May 14 11:14
Copyright (c) 1982,200 4, Oracle. All rights reserved.
SQL> Conn/Sysdba
Connected.
First define a cursor:
Procedure p_myproc (
Pi_param varchar2
) Is
Vi_a varchar2 (10): = '';
Vi_ B varchar2 (20): = '';
Vi_c varchar2 (30): = '';
-- Definition
Cursor mycur is
Selece T. A, T. B, t.c
From tbl_mytable T;
Optimization rules:
1. In CBO mode, the table is queried from right to left, and the first on the right is the base table.Select a small number of rows as the base table,For three or more tables, You must select a crosstab chart (Table connected
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