02 2018 档案
摘要:在写程序中遇到了类似于以下代码的问题: #不会报错 a=1 def f(): print(a) f() #会报错 a=1 def f(): a+=1 f()
阅读全文
摘要:今天,在玩 lsnrctl命令,是为了了解Oracle的一些配置。 当执行 show inbound_connect_timeout 命令之后,提示了错误信息: TNS-01190: The user is not authorized to execute the requested listen
阅读全文
摘要:定义了一个函数, def HRS(size): units=('B','KB','MB','GB','TB','PB') for i in range(len(units)-1,-1,-1): if size>=2*(1024**i): return str(size/(1024**i))+' '+
阅读全文
摘要:以下以我自己的测试环境举例:1.表空间的 block_size 为 8192字节,即8KBytes。从数据字典中查到 max_size 为 2147483645,即约为15.9TBytes。2.在创建表空间时,可以选择bigfile 或者smallfile ,我这里默认的应该是smallfile。发
阅读全文
摘要:create or replace trigger forbid_ddl before ddl on DATABASEbegin --if ora_dict_obj_owner = ora_login_user then -- return; -- end if; raise_application
阅读全文
摘要:select to_date('19700101','yyyyMMdd')+numtodsinterval(8*3600,'second')+numtodsinterval(60,'second') from dual; 上面的语句将时间戳60转换为东八区的时间, 参考在hive和python中时间
阅读全文