1.-view the usage of Oracle tablespace:
Select D. tablespace_name "tablespace name", D. Status "status ",(A. Bytes/1024/1024) as "Total MB ",(A. bytes-Decode (F. bytes, null, 0, F. bytes)/1024/1024) as "How many m are used ",(Decode (F. bytes,
Sqlplus/nolog
Conn/As sysdba
Shutdown immediate;
Startup Mount;
Alter session set SQL _trace = true;Alter system enable restricted session;Alter system set job_queue_processes = 0;Alter system set aq_tm_processes = 0;Alter database open; Set
I was lying in bed last night watching Oracle (recently studying this). My roommate gave me a question and asked me to try it. The questions are as follows:
If the table structure is as follows, select the information of the top three persons whose
After Oracle Db Provider is installed, the path of Oracle. DataAccess. dll is D: \ app \ Administrator \ product \ 11.2.0 \ client_1 \ ODP. NET \ bin \ 2.x.The following shows how to use OleDb, msdaora, System. Data. OracleClient. OracleConnection,
Create or replace function idcard15to18 (card varchar2) return varchar2 is
Type tiarray is table of integer;
Type tcarray is table of char (1 );
Results varchar2 (18 );
W tiarray; -- number Array
A tcarray; -- character array
S integer;
Begin
If
For convenience, the following simple model is created and some test data is constructed:In BSS,-- Customer data tableCreate Table MERs(Customer_id number (8) Not null, -- customer IDCity_name varchar2 (10) Not null, -- CityCustomer_type char (2)
I. DataBaseSave data to present data in the form of tables Ii. SQLStructur query languageStructured Query Language is an object used to operate relational databases.DDL (Data definition language), used to create or Delete tables, and modify table
As we all know, roles are a set of permissions, and Oracle has some built-in roles for easy management.
Speak nonsense and start with the question.
I. Several Simple oracle roles
1. CONNECT
2. RESOURCE
2. Analyze built-in roles one by one
1. CONNECT
For example, there is a personnel table (table name: peosons)
If you want to query records whose names, ID card numbers, and addresses are identical
Select p1 .*
From persons p1, persons p2
Where p1.id <> p2.id
And p1.cardid = p2.cardid and p1.pname
Check database status
Check that all INSTANCE statuses and listener statuses are normal. log on to all databases or routines and check the ORACLE background processes:
$ Ps-ef | grep ora
$ Lsnrctl status
SQL> select status from v $ instance;
Check
Preface
In this section, we need to clarify three concepts: users, permissions, and roles.
Create user
Two concepts are introduced in this example. 1. Users: We create users. Of course, this concept of users is introduced. 2. Permission.
Preface
The previous figure shows all the content in this article.
There is a broom symbol above, representing one-to-many. There is more than one over there. There is a logical structure on the left and a physical structure on the
Recently, oracle materialized views have been updated based on the project business needs. You can search for information on this topic on the Internet to facilitate improvement. The content is as follows:
Materialized View is a special physical
We don't want to have every user install Oracle Data Access Components and drivers so we want to package it into our deployment.
First dowload Oracle Data Access Components. The most current one as of 2/11/2011
1. Stored Procedure writing
Create or replace procedure HVM_BYQ_TJ
-- Transformer statistics ---> warehouse receiving(Id in number)AsBeginFor num in 1 .. 2 loopIf num = 1 thenUpdate hvm_zsb_tj set byq = (select count (0) as hangshu from
1. PrefaceCurrently, all applications that use Oracle for data processing are supported by Alibaba Cloud. Most of the systems with larger data volumes than other systems are supported, that is, the data volume of a table is generally larger than a
You can use the following SQL statement to determine whether a custom object exists in Oracle:Select * from user_objects where object_name = 'yourobobject ';In this way, all information of the object can be obtained.
Note that:1. The object name in
The physical structure of oracle is in a server, and each running database has a database instance (instancename. When the database is started, the system first allocates the system global zone (SGA) in the server memory, which constitutes the
In a high-availability system, changing the definition of a table is a tough issue, especially for a 7 × 24 system. The basic syntax provided by Oracle can basically meet general modification requirements. However, if you change a common heap table
Various Processes in the Oracle system can be divided into two categories:
1. the user process that executes the application or Oracle tool code ).
2. The Oracle process that executes the Oracle database server code ). This includes server process
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