Find object Names in a file and print all those objects Names

Hi All,
I am new to this forum.
I want to know how to read only objects names in txt file. In the text file i have sql queries, package names, Function Name. I need to read all the objects and display out put. The file contains around 20000 Lines.
Please suggest me.
Thanks & Regards
Suresh.

Gurram wrote:
want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option.

Similar Messages

  • File and Printer Sharing Problem with WRT54G

    I am currently having problems sharing files over my network. My setup consists of:
    3 laptops (wireless)
    1 desktop (wired)
    WRT54G V6.0 router with firmware version 1.00.9.
    All of the computers have File and Printer Sharing enabled, unique names, and are on the same workgroup. However none of the computers can see one another. When I try to view workgroup computers for my network places, the explorer window stops responding for about 30 sec. and then spits out a dialog with the error:
    "Workgroup is not accessable. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
    The list of servers for this workgroup is not currently available."
    I think that this problem has something to do with the router, as I have been successfuly sharing files and a printer with these settings using a microsoft 802.11b router for over a year. After purchasing the linksys and swapping it out with my old router, filesharing no longer functions.
    I have spent a little time browsing the forums and have seen other posts from people with simmiler problems, but was unable to find any solutions.
    Any help would be much appreciated.
    Thanks.

    I'm having the same problems as you are, I have 2 computers on wired the other wireless the router is in between and I can't access from either side, although I can ping and remote connect but just cannot share files across the network. I have looked all over the forums too and there saying to ditch linksys and do something else.
    Its not you thats caused this it is the firmware and the router that have the problems.
    My Specs:
    WRT-54G
    v5.0
    That new firmware update 1.00.9 just isn't working right. I might downgrade my fireware to fix this problem.
    Message Edited by justin2006 on 09-26-200612:24 PM

  • Event id related to the removal of the file and print sharing for networks

    Hi ,
    Recently print team has migrated the print server from the physical old server A to the VM server A-new .After the migration ,  the server A-new is retained with the name server A shutting down the old server .
    But the clients are reporting that they are not be able to print because we found that due to this print team migrated the old print server to the new print server with the duplicated entries which reflected in AD. This our server team came to know once
    the complaint raised  by the site person to us saying that their printers are not working at all.
    While checking the issue only then we found that the duplicated entries are found in the AD for the printer objects published in the AD.Print team has done the improper migration and left to server team saying that it is our responsibility to solve the issues.
    And I suspect that somebody has  removed the file and print for networks in the network portion of the windows.We came to know only when we try to take any share either file share or print from the particular server to file server.
    After enabling that option in the network portion , everything got resolved as the duplicate entries removed from the AD and published one instance of the printers.
    I need to find the event in which this action has been triggered to remove that component and from that to identify who has done that..
    Any help is greatly appreciated
    Thanks & Regards S.Swaminathan Live & let others live!!!

    There are some print events on the Domain Controller if one of the DC "pruned" the old print objects.  Unfortunately these are information events logged to Print-Service Operational channel which is not enabled by default.  You might
    be lucky and someone had these events enabled. 
    Check if the channel is enabled on all your domain controllers. 
    http://social.technet.microsoft.com/wiki/contents/articles/13308.troubleshooting-windows-server-2012-printing.aspx
    Alan Morris formerly with Windows Printing Team

  • E3000 file and printer sharing issues

    Yes, there is at least one other thread on this but it looked a bit stale.
    Last Friday I replaced my BEFSR41 router and WRT54G wireless access point (which had gone brick on me) with an E3000.The E3000 is configured as a DHCP server at 192.168.168.65 with a scope of 66-115. The only other non-default setting is that I opened up the custom port for my slingbox.
    Prior to making the switch, I had several network shares on an XP desktop that I used frequently from my Vista laptop. Now, however, I can no longer even "see" any other computer from any of the computers on the network, much less access their shared folders. In other words, if I view the network from any of these machines, the only machine that shows up is the machine itself. Everything else (internet access, slingbox, a print server) is working just fine.
    One of the suggestions in the other thread was to turn off Norton Internet Security, which is of course not a viable option. However I did check the settings, relaxed the network default to "Shared", and raised the XP desktop to "Full Trust". This had no effect.
    I pinged the various computers, and was able to do so by their IP addresses, but not by their computer names (that worked with the old router). On a hunch, I tried creating a mapped drive, and that also worked when I used the IP address, but not when I used the computer name.
    So - there's nothing wrong with the network configuration, or with how the shares are set up, and Norton isn't the problem. The only problem seems to be that names aren't being resolved, which could be affecting windows discovery, too. Did the BEFSR41 provide some local DNS functionality by default, and the E3000 doesn't? Is there an option I need to enable? If so, I can't find it. Perhaps I should explicitly add the E3000's internal IP address as a third nameserver??
    A note on the "support" I tried to get before I turned to the forums: The "Chat agent" asked a bunch of questions, misunderstood my configuration and my problem, and once he finally did understand said "we don't support file and printer sharing". It took me several more questions to learn that he really meant that the Chat facility isn't the place for these questions - I had to call the 800 number. I did that, and after several minutes on hold, reached an agent. After going through everything again, and with the rep going on hold several times to "speak to his supervisor", he said it was "beyond his competence". I was eventually told I had to call another FEE-BASED service. I told him that was unacceptable.

    Ok, another update and possibly some clues.
    I was curious why at one point, when all the computers were in Workgroup2, that "Workgroup" still showed up in Explorer under the list of networks, but only on the two XP machines. Netscan showed this group association as well, which I then realized was the E3000 itself, in its role as a [I]potential[/I] NAS server. However there was no storage device attached.
    Could this in itself cause the access error? If so, should users be advised that if they don't plan to host any storage, that they should to go to the E3000 Storage Administration page and change the workgroup name to something other than their actual workgroup name?
    In my case, I changed it to "Workgroupx", though perphaps something like "StorageGroup" would be more meaningful, especially if the Workgroup computers could still access any storage I might install in the future.
    Anyway, I repeated my original approach (after the above change and a router reboot), and at least got my original Workgroup reestablished to the point where the XP machines not longer get access errors, and most machines can access the shares on the XP desktop. The steps I used on each machine were:
    remove any shares I had set up on any folders
    uninstalled the File and Printer Sharing service
    Accessed Computer Name properties page to change the workgroup name
    Shut Down
    After all 4 were done, I reversed the process:
    Started computer (now coming up in new Workgroup)
    Reinstalled File and Printer Sharing service
    Checked visibility
    At this point, the XP machines could see each other, and the Win7 and Vista machines could see each other, but initially these two cliques wouldn't interact.
    Next I re-added the shared folders on the XP desktop, and the XP netbook could see and access them. After about an hour, the Win7 machine joined this clique, and could also access the shares. But six hours later, the Vista machine is still clueless. Netscan shows everything of course, and I used it to set up a mapped drive on the Vista machine to one of the shared folders.
    Other possibly relevant facts:
    The was all working fine with the BEFRS41/WAP54G combo
    I can ping all machines by IP address, but not by name
    On the Vista machine I can set up mapped drives to the XP's shared folders, but again, only by IP address.
    At one point I removed NWLink from the XP desktop. Now, nbtstat -r only shows the printserver's name being resolved.
    The two XP machines, being SP3, lack the LLTD responder.
    So,
    Is it possible the NetBIOS in NWLink was providing some kind of name caching? If so, should I reinstall the protocol driver (I don't think it is available on Win7)?
    Should I request and apply the KB922120 hotfix to get LLTD onto the XP machines?
    Perhaps in the morning, "by name" access will have returned, as it did on my first go-round. Needless to say this has been a real pain, what with all the reboots required. At least now I remember to hit F8 so I can select Safe Mode with Networking...

  • File and Printer Sharing for Microsoft Networks is missing

    I have a Server 2012 Hyper-V VM that is missing the File and Printer Sharing for Microsoft Networks. When I try to Install the service it is not listed. The only service listed is Windows Network Virtualization Filter driver. I have the install media but
    I don't know where the driver would be located. I'm hoping someone can tell me where it is located.
    Update:
    I am trying to run Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_server but it's not working and it's giving me this error.
    Enable-NetAdapterBinding : No matching MSFT_NetAdapterBindingSettingData objects found by CIM query for instances of
    the ROOT/StandardCimv2/MSFT_NetAdapterBindingSettingData class on the  CIM server: SELECT * FROM
    MSFT_NetAdapterBindingSettingData  WHERE ((Name LIKE 'Ethernet')) AND ((ComponentID LIKE 'ms[_]server')). Verify query
    parameters and retry.
    At line:1 char:1
    + Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_server
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (MSFT_NetAdapterBindingSettingData:String) [Enable-NetAdapterBinding], C
       imJobException
        + FullyQualifiedErrorId : CmdletizationQuery_NotFound,Enable-NetAdapterBinding
    Vincent Sprague

    Ok, fixed it, I found the netserv.inf file in c:\windows\inf and tried to use it to reinstall File and Printer Sharing. However File and Printer Sharing was not listed. I copied the netserv.inf file from another Server 2012 VM and was able to install File
    and Printer Sharing using the copied NetServ.inf. After rebooting the server I was able to access network shares on the server.
    Vincent Sprague

  • File and printer sharing for Microsoft Networks on Windows server 2008

    Hi Expert,
    I found that the properties of File and printer sharing for Microsoft Networks service disabled after I install the windows server 2008 64bits. I tried to install that service via adding the file and printer sharing services in the properties of local area connection, but it doesn't contain any service in the popup box.  Also, no such service file available in the disk when I tried to install the service from installation disk of windows server 2008 64bits. Is the file "sacsrv.dll" corresponding to the service name of file and printer sharing? I found it is in the directory of "Windows\system32".  I have no idea about where is the problem? Do I miss some components? Please tell me what can I do for it? Thanks!
    Best Wishes,

    Do any experts know the reason of this problem?  Thanks!

  • Assign the name of a file and its extension when using DESTYPE=MAIL

    Hello,
    I've developed a report running Oracle Reports 10g that is being emailed to a user. I would like to specify the name of the file and it's extension that is attached. Are there variables or parameters in Oracle Reports that I can use to accomplish this?
    It looks like by default that the file name is using the Name value found in the Property Inspector for the report. I have not been able to find a way to re-assign this value with a value from either the input or select values in the data model.
    Will Oracle Reports 10g allow me to define the name of the file and the extension?
    Any help or direction would be greatly appreciated.
    Thanks in advance
    Jesse
    Message was edited by:
    Sutherland

    Thank you for the quick reply and information. I almost thought you had solved my problem until I found out that distribution and bursting do not support delimited and spreadsheet output. One of the two files I need to email has a desformat of SPREADSHEET.
    Is there any other way to manipulate the file name and extension when using destype of MAIL?

  • Lenovo Thinkvanta​ge Access Connection​s prevents Microsoft File and Printer Sharing

    We have several Think pad laptops deployed in our company, including G41, T61, and T500 models.  We are using Numara's Track It software to inventory our workstations and laptops.  The auditing process needs to have Microsoft File and Printer Sharing turned on in order to work.  We have enabled a group policy to set this to on by default.  However, the Thinkavntage Access connections manager for the LAN connection overrides the GP and turns off the File and Printer Sharing by default.  What's worse, with it off, we can't remotely manage the machine's services or even access the registry.  We know that his is the issue, because reconfiguring the access connections manager to allow the file and printer sharing will allow all of our remote administration tools to work, insluding the inventory audit.
    Does anyone know how to disable the access connection manager from running remotely?  or does anyone know how to change the settings remotely to all for the microsoft file and printer sharing to be enabled by default.  I would hate to have to visit each user individually just to turn off a setting. 
    anyone else run into headaches because of this "security feature"? 
    Jason

    1.Find snetcfg.exe on internet
    2.Create batch who runs snetcfg with this commnads from network locations
    (this setting enable  File and Printer Sharing)
    snetcfg -u MS_Server
    snetcfg -c s -i MS_Server
    3. Deploy and run batch on laptops (GPO)
    4. Deploy new AC profiles settings  (.loa)
    done
    sorry for my english

  • File and Printer Sharing

    Running XpHomeSp2. Just purchased a WRT150N to replace a failing SMC wireless router. Was able to share files and printers before replacement, now cannot. Microsoft Windows Network recognizes Local network by name after long, slow delay, but does not list any computers or shared locations or devices there when access attempted from main computer, but, oddly, list is possible from another network computer, but only the shares it offers to the network are accessible.
    Only difference between now and prior is the router and that WPA security is invoked. Access is not granted when security is disabled. Have found no support for this issue anywhere. Also now note that Xp no longer lists Simple File Sharing in Folder Options, not that I'd used it in original sharing setup.
    Anyone experiencing similar issues able to offer resolution?

    Your computer software firewall may be blocking the file and printer sharing. It was for me. You changed from a 'Trusted' network physical address to a new network physical address. Go into your software firewall 'Trust' settings and change the new address to 'Trusted'.
    I had previously just disabled the firewall. Apparently that's not totally effective.
    Hope this helps.

  • Script to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks

    Hi, I am trying to find a way of using a batch file or vbscript to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks on a Network Interface Controller.
    I've done some searching on the internet and I can see some suggestions to locate the Setting ID of the NIC and then remove the value from the "Bind" string under "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Linkage" and "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Linkage"
    I tried this but it didn't seem to uncheck itself from the NIC properties under NCPA.cpl
    Can someone help me? 

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/b0407073-07bc-462b-9de9-7295be5fa183/disable-file-and-printer-sharing-for-mircorosoft-networks?forum=csharpgeneral
    ¯\_(ツ)_/¯

  • X301 "File and Printer Sharing for Microsoft Networks" removed at re booting (XP SP-3)

    Even if I run the “Network Identification Wizard” (under System properties/Computer Name) to join a Workgroup, the box ‘File and Printer Sharing for Microsoft Networks’ remains unchecked.  If I ticked it manually, it remains checked for the current session, but it is unchecked at booting.
    The same occurs with the Windows Firewall (I am running that from Symantec). I switch the Windows Firewall off, but after rebooting, it appears selected again!.
    This happens only with my brand new ThinkPad X301, which came with Vista. The package included a kit to convert to XP, but this installed a ‘naked’ XP, which required downloading from Lenovo and Windows about 1Gb of files (bad service, Lenovo guys!).
    I wonder which “safety” issue of the X301 causes this, but how can I stop this happening? (It does not occur with any of my two old ThinkPads, also running XP SP-3 and Lenovo software).
    Solved!
    Go to Solution.

    See -> http://www.vistax64.com/vista-networking-sharing/72537-file-printer-sharing-turned-off-reboot.html  Here is the text. Re: File and Printer sharing turned off on reboot
    I FOUND MY SOLUTION!!!
    In my case, it was in Lenovo's "ThinkVantage Access Connections" applet. It
    is additional security that is applied at the CONNECTION level.
    Here is how I fixed it:
    1. Double click on the ThinkVantage Access Connections applet in the
    notification area.
    2. Click on the MANAGE button on the toolbar
    3. Select the SSID where you want File Sharing to work, and click EDIT
    4. Click on the ADDITIONAL SETTINGS tab
    5. Next to "Network Security", click the SETTINGS button
    6. The first option in Security Settings is "Disable file and printer
    sharing". UNCHECK this box. Click OK for 3 levels of dialog boxes, then
    close Access Connections
    Although these directions are specific to ThinkPad notebooks, the same
    principle may apply for other manufacturers' connection managers.
    Best of luck!

  • BEFW11S4 with Westell/Bellsouth DSL, and wanting file and print sharing

    I have configured the BEFW11S4 to share the DSL connection with Ethernet to home PC, and wireless to laptop.
    How can I configure this to also allow the laptop to connect to the home PC for file and printer sharing?
    Sorry if the is discussed elsewhere, im noob here and couldnt find anything applicable.
    Thanks!
    J

    Check IP on each PC: For example:
    PC1: 192.168.1.100
    PC2: 192.168.1.101
    Ping 192.168.1.101 from PC 1 and ping 192.168.1.100 from PC2... see which replies...
    If both give out positive replies... then that is not a router issue but PC issues. Might be firewalls.
    Message Edited by sharkbyte on 02-20-200701:32 PM

  • File and print sharing keep turning off

    I have a thinkpad SL510 with Win Pro installed and for some reason the File and Print sharing checkbox for the Ethernet adapter keeps turning off after I reboot or restart the computer...What do you have to do to prevent this from happening?
    Solved!
    Go to Solution.

    downsct, welcome to the forum,
    are you using Access Connections by any chance?
    There is a setting in Access Connections which can influence file and printer sharing. If you look at the profile's further settings, there is an entry for network security, file and printer sharing needs to be activated.
    I think this is a great feature of AC as it will override the windows settings, you can choose to allow or block in each profile; e.g. allowed at home, but blocked at the Airport or Hotel.
    Hope this helps
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • File and printer sharing with new router WRT100

    I have a desktop PC running XP media center home edition hardwired to the router and a wireless laptop running Vista basic. About a year ago I was able to set up a wireless home network. I was thrilled to find out I could share files and a printer between the 2 PC's. Everything was working well until last week when my router died. I replaced the router with WRT100 and both PC's are back online but I lost file sharing. I am NOT technical and know little about PC's. I just stumble along. I spent hours trying to figure out the problem. I changed no seetings  on my computers except what was needed to install the new router.    What I do know is that the network wizard  is telling me the network is set up but when I go into a folder I want to share there is no tab that says "share file on the network". (when this tab was there I checked it and the under the folder an icon would appear to show the folder was shared on the network between the 2 computers).
    I can share the files within the PC with other users but not on the network with my other computer. I checked all the settings and cannot find a problem. I tried to ping the computer but got an error.  Stuff was sent but not received, whatever that means???
    Any assistance would be greatly appreciated. Thanks....

    If you are running any firewall, try disabling that. Make sure all computer's are set to same workgroup. Also turn on built on firewall on vista, and xp. Turn defender off on vista. Then try to ping and check for replys.

  • Problem with file and printer sharing

    I just installed a Linksys WRT54G to replace a D-Link wireless router and cannot reestablish my file and printer sharing since replacing the router.  I had file and printer sharing working fine before installing the WRT54G.   All of the computers are running either XP Pro or 2000 Pro.  I have two printers attached to one of my computers that I was previously sharing with all of the other computers on our home network.  One is attached via a parallel port, the other via a USB port.  
    Here's what I've tried so far without success.
    1.  The IP of the WRT54G is 192.168.1.1, and the IP's it assigns to my LAN computers begin 192.168.1.XXX.  The old IP of the D-Link was 192.168.0.1 and its LAN IPs were 192.168.0.XXX, so I've gone into my firewall and changed the settings for the range of trusted computers to correspond to the WRT54G's IP addresses.
    2.   I've tried uninstalling the printers and reinstalling them, including reinitializing printer sharing.
    3.  When I try to use the Windows  "Add printer" wizard to add a networked printer, it can see the computer that has the printers attached, but it does not see the printers.
    4.  I haven't fooled around with the file sharing settings, but they've all be lost too, so I suspect there is a common problem for both printer and file sharing.
    Any suggestions would be most welcome.  I don't know what would be different about the WRT54G that would cause this problem.

    Try this to Enable File and Printer Sharing...Turn Off the Router Firewall...Make sure the Windows Firewall is also Off...

Maybe you are looking for

  • HP Expert Day - Jan 11, 2012: It's Your Chance to Ask the Experts!

    Thank you for coming to Expert Day – the event has now concluded. **To find out about future HP Expert Day events, check out this page** On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will

  • I cant connect my ipad 2 to the wifi unless right next to the router

    i cant connect my ipad 2 to the wifi unless right next to the router

  • FV11 key combination issue - Materials - Services

    Hi MM experts, I am having problem while making the PO - Services. We are separate POs for material & services. FV11 key combination maintained for Materials : Plant/Vendor/Material FV11 key combination maintained for services : Plant/Vendor/Materail

  • Password protect a file

    A while ago I set up an excel file and protected it with a simple password. I am wanting to do the same with a word document but i can't for the life of me remember how i did it. Please help. Using10.4.11

  • Formula Node - Embedded If statements

    Greetings, I would like to "embed" an if statement within an if statement using a formula node. The structure is as follows: if(x == y/2)  y = 0;  if(a < c && a > d)   a = a - 1; For some reason when I run my code and both of the criteria for my if s