在plsql中能否实现取本地的网卡mac地址或者是硬盘序列号?或者能否在 plsql中直接调用dos命令ipconfig/all?着急,多谢!在线等?或者说只要获得除ip地址外的任何能唯一的标识本地信息的字段信息?因为我这里的ip是自动获取的,不是固定的

解决方案 »

  1.   

    可以,command窗口中
    host dir
    host ipconfig/allSQL> host ipconfig/all
    Windows IP Configuration        Host Name . . . . . . . . . . . . : sinosoft-lczhx2        Primary Dns Suffix  . . . . . . . :         Node Type . . . . . . . . . . . . : Unknown        IP Routing Enabled. . . . . . . . : No        WINS Proxy Enabled. . . . . . . . : NoEthernet adapter 本地连接:        Connection-specific DNS Suffix  . :         Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection        Physical Address. . . . . . . . . : 00-14-85-C4-AD-67        Dhcp Enabled. . . . . . . . . . . : No        IP Address. . . . . . . . . . . . : 192.168.71.229        Subnet Mask . . . . . . . . . . . : 255.255.255.0        Default Gateway . . . . . . . . . : 192.168.71.254        DNS Servers . . . . . . . . . . . : 219.239.36.2SQL>
      

  2.   

    我说的是在plsql代码(存储过程)中实现,而不是外部的调用
      

  3.   

    在Oracle运行操作系统命令
    参考 http://www.dbonline.cn/source/oracle/20040610/PLSQL_Run%20OS%20command%20in%20oracle.htm