After you create a synonym, you can access it with SQL, you can also modify the data, but when using this synonym in the stored procedure, the report "table or view does not exist" error, the Internet check, the original to "access to public
C:/>sqlplus
Sql*plus:release 9.2.0.1.0-production on Saturday September 29 15:08:34 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Please enter user name: SYS as SYSDBAPlease enter password:
Connect to:Oracle9i Enterprise
Union/union All operation: Combines the query's return into one result, and union all does not filter the duplicates.
Select product_id from Order_items
UNION
select product_id from inventories;
Select location_id from locations
UNION All
Search the network, about the Oracle garbled discussion a lot, but did not find a prescription for the disease.
To explain the situation first, the reader can reproduce the problem according to the instructions:
In Oracle9i, there is a table test1
Determine if the table exists, if it does not exist, and then create:
declare tableexist number;BeginSelect COUNT (1) into the tableexist from User_tables where Table_name=upper (' onecallprtcp ');If tableexist = 0 ThenExecute immediate' CREATE
When you create a table today, the fields are enclosed in quotes, and when you select the field you tell the field to find it, as shown in the following example:
Sql> CREATE TABLE Test ("id" varchar2);
Table created.
sql> desc test;
Name
Reference Source: http://download.csdn.net/detail/guoquanyou/3614666
Add table Student to Oracle database
CREATE TABLE Student (STUDENT_ID Number (6) is not NULL PRIMARY KEY,Student_name VARCHAR2 (Ten) is not NULL,Student_age Number (2) Not
1. First create a table lengzijiantest with only one field in the table f_id
CREATE TABLE lengzijiantest
(
f_id number not NULL
)
2. Insert a piece of data
INSERT into lengzijiantest values (1)
3. Now
Users have a requirement to access the Oracle database using C + +, and then open the C + + database programming book. C + + (VC) database access technology has Odbc,dao, ADO (OLE DB) and other technologies, these are common C + + database access
In the day-to-day development of many new colleagues do not quite understand how to connect Oracle server, here I do an Oracle client common way of brief:
In fact, there are many ways to connect Oracle services such as: Native, PL,,
Where Native for
Install the oracle9i, and then install Tomcat (5.0/6.0 have tried), with the start of the myeclipse to say "address already" in user.
No language, for fear of conflict with Oracle ports I've changed the ports when I installed Tomcat, like 8081,8082,
XML version= "1.0" encoding= "UTF-8"?>DOCTYPE Mapper Public "-//mybatis.org//dtd mapper 3.0//en" "Http://mybatis.org/dtd/mybatis-3-mapper.dtd ">Mappernamespace= "Com.oracle.mapper.AccountInfoMapper">the full class name of the interface - Type:
Concept: Consistent backups, that is, backups made after database consistency is closed, typically by: Shutdown immediate mode is turned off.Step: 1. View the three core files in the location: Data files, control files, log filesData files: select
First, the files Win32_11gr2_database_1of2.zip and Win32_11gr2_database_2of2.zip decompression.Note: These two files are extracted to the same directory, i.e.: The Components catalog is merged togetherTwo, double click "setup.exe", pop up the
Each database has one or more service names, and the service name is the name provided to the client to connect to the DB instance.Creating a database defaults to creating a service with the same name as the database, and the default service
1, Oracle Support Delete Tablename,mysql must write delete from tablename.2. mysql has enum type, Oracle does not.3. Oracle Connection field Using | |, MySQL uses the function concat ().Select Ename | | ', ' | | Empno from EMP; MySQL can also be
Asked to calculate the size of the table space for a table, the web looked up some data for Oracle's 3 views. Specific SQL is as followsSelectSegment_name asTableName,round(bytes/ (Select sum(a.bytes) fromDba_data_files A, user_users
Paged query with the following SQL, the query is the 6th to 10th dataSelect t.* from (select U.username, rownum row_num from Table_user u where rownum => 5Use the number of pages to indicate:/** * * @paramNumofpage A few data per page
Oracle Server: Two components, Oracle database and Oracle Instance Oracle database: Files that actually hold data on your hard disk, which are organized together into a logical whole, that is, an Oracle database. Therefore, in Oracle's view,
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