oracle 帐号锁定及密码修改

  # alter  user   soctt    account   lock;                       // 把 scott用户锁定
   # alter  user   scott    account  unlock;                    //把scott用户解锁
  # alter  user scott  identified   by   scott              //修改scott用户密码为 scott,scott用户默认密码为 tiger .
sql plus "sys/manager as sysdba"

http://6c2234bcc:1158/

http://6c2234bcc:5560/isqlplus/login.uix

建立序列 

create sequence s_CarInfoID
increment by 1
start with 1
maxvalue 99999999999
nocycle
cache 10
/

建立存储过程

create or replace procedure pro_test
as
carinfo_id number;
begin
select s_CarInfoID.nextval into carinfo_id from dual;
insert into test(carno,carinfoid) values(carinfo_id,'123');
commit;
end pro_test;
/

任务

SQL> variable jobno number;
SQL> begin
  2  DBMS_JOB.SUBMIT(:jobno,'pro_test;',SYSDATE,'sysdate+1/24/12');
  3  commit;
  4  end;
  5  /

打印作务号

SQL> print :jobno;

     JOBNO
----------
        21

查看所有 job

select job,next_date,next_sec,failures,broken from user_jobs;

删除job

begin
dbms_job.remove(21);
commit;
end;
/

yyyy-mm-dd ss:mm:ss

select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;

原文地址:https://www.cnblogs.com/hhq80/p/1312128.html