Select to_char (sysdate, 'day') from dualThe current day of the week is displayed.Select to_char (sysdate, 'D') from dualWe can see that the day of the week is the day of the week. Because the foreign people's habits are different from those of
1. Find db_1/computer name _ orcl/sysman/config/EMD in the Oracle installation directory. properties, use NotePad to open EMD. properties, in EMD. change agenttzregion = GMT in the last line of the properties file to agenttzregion = Asia/Chungking
How to make Oracle stored procedures return result sets
How does one allow Oracle stored procedures to return result sets?Oracle stored procedure:
Java call code:
Try { drivermanager. registerdriver (New Oracle. JDBC. oracledriver ();
Oracle job is a function provided by Oracle to regularly execute a stored procedure or package.
Main scenariosPerform related operations on the background at regular intervals. For example, save the data of one table to another at every night, and
Now oracle can be managed through http: // localhost: 8080/apex on the web, but this will occupy port 8080, which is in conflict with other Web servers. This method is found today and is effective in the experiment:
Call dbms_xdb.cfg_update
Remove auto-start from system boot:
CD/etc/
Ls-l rc *. d
You may get 7 directories, rc0.d, rc1.d,..., rc6.d and RC. D, and in some of them you may find the files like
Ls-L * Oracle-Xe *
Lrwxrwxrwx 1 Root 19 mar 17 K01oracle-xe-> ../init.
(2) Another internal risk-user management and password Problems As a database administrator, Oracle databases use many methods to enhance the security of databases, including passwords and roles, permissions. Let's start with Dbsnmp: After a
1: List the names, department names, and salaries of all employees. Select a1.ename, a1.sal, a2.dname from EMP A1, DEPT A2 where a1.deptno = a2.deptno; 2: list all Department details and department count select a2.deptno, a2.dname, a2.loc, count (a1.
I. First, the cause of the problem is that I deleted a file in oracle \ oradata \ oradb by mistake.2. symptom: SQL * Plus cannot be connected, the following error is displayed: ORA-01033: Oracle initialization or shutdown in progress, the same error
1. Example of creating a tablespace:Create tablespace "sample"LoggingDatafile 'd:/Oracle/oradata/ora92/luntan. ora size 5 mReuse autoextendOn next 51200 K maxsize 3900 mExtent management local segment space management autoThe preceding statement
1. Use % Type
In many cases, PL/SQL variables can be used to store data in database tables. In this case, the variable should have the same type as the table column. For example, if the first_name column type of the Students table is varchar2 (20),
1. Are you familiar with databases sql2005 and Oracle? Sql2005 is a database product of Microsoft. It is an RDBMS database, which is generally used in some medium-sized databases and cannot be used across platforms. Oracle is a data product of
Today is, not just after, it should be. Today, my colleague failed to listen to the database for security reinforcement, and then my buddy did the same experiment, the result is still failed. I do not know why. I am sorry to say this to Brother Xian
Java programs or classes can be stored in the database and replaced or supplemented with PL/SQL. Java can be used as a database trigger, stored procedure, function, and object member function. After developing a Java stored procedure according to
Adjust Oracle Competition
One of Oracle's advantages is that it can manage free space in each tablespace. Oracle is responsible for table and index space management, so that we do not need to understand the internal operations of Oracle tables and
The most basic data objects in Oracle databases are tables and views. Other data objects include constraints, sequences, functions, stored procedures, packages, and triggers. Database Operations can basically be attributed to operations on Data
I have recently seen many people talking about issues such as TNS or the inability to log on to the database. I simply summarized the following documents.
First, the network structure of Oracle can be combined with encryption, LDAP, and so on .. We
Oracle backup and recovery of single or multi-table data
Oracle backup, recovery of single or multi-table data steps, applicable to Oracle 8, 9, 10.*Back up single or multi-table data:Exp user/password @ Server File = filefullpathname log =
Oracle study note _ trigger
Trigger
The code block automatically executed when a specific event occurs. It is similar to a stored procedure, but users cannot directly call them.
Function:1. Allow/restrict table modifications2. automatically
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