I helped a friend with Oracle cross-database operations a few days ago and shared the specific operation process:
1. database with different IP addresses (dblink)
Local Database IP address 10.56.7.26
Remote database IP address 233.215.219.8
1
/* Memory space parameters allocated for creating Bitmap indexes to accelerate index creation */
Show parameter create_bit;
/* Change the index storage parameter */
Alter index index_name pctfree 30 storage (initial 200 K next 200 k );
/*
Query
The SELECT statement is used to query data from the database. When the SELECT statement is used in PL/SQL, it must be used with the into clause. The return value of the query is assigned to the variable in the into clause, variable
Create user cmsuser identified by "cmsuser ";
SQL> create user uumcuser identified by "password ";
User Created.
SQL> grant connect, DBA to uumcuser;
Grant succeeded.
SQL> grant exp_full_database, imp_full_database, resource, create any
Recently I want to optimize some SQL statements for full table scan. The first thing I think of is index creation.
I checked the online information and said that if there is null or is not null in the WHERE clause, the index will not be used, but I
In a QQ group, I saw a person learning about the overview and learning plan of the hardware abstraction layer (HAL) of Android during his android journey. When I encountered a problem, I went to the workshop.ArticleToday, I will give you a
My machine is 5l, Oracle9i, weblogic6.1, httpserverThe level of the other party is limited because of the machines installed for others (I am also very good at cooking). In order to worry about it, it is better to let the system automatically run
Learning Oracle is a long and arduous process. If you are not interested but forced to learn, it is difficult to learn well. To a certain extent, if you want to further improve your knowledge, you have to get in touch with a lot of things outside of
I have never been familiar with Oracle. I have learned a lot from my brother's demonstration today, so I wrote this article to record it. Let's talk a little bit about the situation:
Environment: Windows2003 + oracle9i is installed in vpc2007 as the
Record variable
Define a record variable using the type command and % rowtype. For more information about % rowstype, see related materials. Record variables are used to extract data rows from the cursor. When multiple columns are selected for the
Use query in a cursor For Loop
You can define a query in a cursor for loop. Because no explicit declaration is made, the cursor has no name, and the record name is defined through the cursor query.
Decalre
V_tot_salary EMP. Salary % type;
Begin
For
SQL> select tablespace_name, file_id, Bytes/1024/1024, file_name from dba_data_files order by file_id;6. display the current connected user---------------------SQL> show user7. Use SQL * Plus as a calculator----------------------SQL> select 100*20
1. Switch users and log on:
Conn system/password @ myoracle as sysdba; myoracle is the database name or service name. As sysdba logs on as an administrator. If the database name is not added, a protocol adapter error may be reported. If you have
---------------------------------------------------------------------------
---- This is andkylee's personal originality. Please repost it with respect to the author's Labor achievements;
---- The original source must be specified for
Configuration file:
-->
{Call p_test (?, : Vpostno )}
Stored Procedure:
Create or replace package testpackage
Type test_cursor is ref cursor;
End testpackage;
Create or replace procedure p_test (p_cursor out testpackage. test_cursor,Vpostno in
Oracle development often suffers from invalid stored procedures and functions from time to time, so I made up my mind to solve this problem. I found a good solution and modified it On the basis, I finally solved the problem.
1. Create a stored
Before writing a program, you need to implement the function of querying the tablespace usage in the database. Although you do not know the significance of doing it, you have to do the project requirements.
I wrote one and can only find permanent
Oracle was installed yesterday, And PLSQL developer was installed today, which cannot be connected. PLSQL developer is a 32-bit Oracle database that cannot recognize 64-bit data.
Solution:
Download instantclient-basic-nt-11.2.0.2.0 bit client,
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