你对这两种在 oracle 中创建文件夹的方法有何想法
根据我关于如何创建文件夹的最后一个问题这里我发现了一些代码,之前写过它!< br> 寻找:
(抱歉,由于限制,我无法在此处放置代码)
他们尝试通过oracle
创建一个bat文件,
outfile text_IO,file_type
then they write these statement!
body_of_file = 'Net use x: \\address'
body_of_file += 'md' || filename
body_of_file += 'start '|| file name
然后打开bat文件并在其中写入!
然后他们通过 HOST 调用它!!!
就像:
Host('cmd /c \\address\.x.bat host_folder'|| sysdate);
但他们可以轻松直接地通过调用HOST!
而且我也不知道为什么他们在 oracle 6i 中就可以编码!!!!我们使用 2 个 Oracle 6i 和 10g。
请您帮助我:
1- 为什么这段代码在 10g 中不起作用?
2-哪种方法更好?创建一个批处理文件并创建文件夹或使用主机来运行每个命令?(在我的想法中两者是相同的,你呢?)
According to my last question about how to create folder here I find some codes that s.b before write it!
looking :
(sorry for limitation i cant put codes here)
they try to Create a bat file,by oracle
outfile text_IO,file_type
then they write these statement!
body_of_file = 'Net use x: \\address'
body_of_file += 'md' || filename
body_of_file += 'start '|| file name
then open bat file and write inside it!
then they call it by HOST!!!!
like:
Host('cmd /c \\address\.x.bat host_folder'|| sysdate);
but they can easily and directly by calling HOST!
and also I dont know why they code just can in oracle 6i!!!! we use 2 oracle 6i and 10g.
please would you help me :
1- why this code dont work in 10g?
2- which way is better?create a batch file and create folder or use HOST for run each command?(in my Idea both is same,How about u?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Oracle 6 是客户端服务器架构。 “表单”代码在最终用户的 PC 上运行并直接连接到数据库。这样做有优点(特别是在与客户端 PC 上的硬件接口方面),但也有缺点(例如,将代码更改分发到客户端 PC、安全性)。
Oracle 10g是三层架构。最终用户使用浏览器连接到应用程序服务器。 Forms 代码在应用程序服务器上运行。应用程序服务器连接到数据库。
客户端仍有一些处理,并且添加了 WebUtil 层,Forms 代码被允许执行一些客户端框上的功能。
我会单独编写每个命令,因为这样会更容易处理错误(并且当您在不同版本的 Windows 之间跳转时会出现错误)。
Oracle 6 was client server architecture. The 'Forms' code ran on the end user's PC and connected directly to the database. There were advantages in this (especially in interfacing to hardware on the client PC) but disadvantages too (eg distributing code changes to the client PC, security).
Oracle 10g is three tier architecture. The end user uses a browser to connect to an app server. The Forms code is running on the application server. The application server connects to the database.
There is still some processing on the client end, and with the addition of the WebUtil layer, the Forms code is permitted to perform some functionality on the client box.
I'd write each command individually as it will be easier to handle errors (and there will be errors as you jump between different versions of Windows).