SQLcl throws the Exception on start and stop operating within the scheduled task

I'm on Windows Server 2012 R2 runs a script TakeCommand (jpsoft.com) as a task scheduled using SQLcl - 4.2.0.15.177.0246.

The script is invoked, when the account (with administrative privileges) who runs the scheduled task is not connected to the machine.

The scenario is as follows:

  • servers both windows ServerA and ServerB (virtual servers)
  • ServerA has a SAN connected directly (as E drive)
  • ServerB remotely accesses drive E on ServerA and maps in drive E (guest ServerB cmd > net use e: \\ServerA\e)
  • the problem occurs on server b.

Corr 04/09/2015: the SAN is not the cause of the errors/exceptions - it's just that the user who runs the scheduled task is not logged on and therefore has no APPDATA

When SQLcl is called, the following lines are recorded... (italics: private information, "BOLD": SQLcl output not visible when the user connects while work is carried out at the request)

03/09/2015 12:16:41.979 to connect to the jdbc URL ... (this output is to the batch calling SQLcl - everything below is SQLcl or SQL script)

Sep 03, oracle.dbtools.raptor.console.MultiLineHistory load 2015 12:18:05

SEVERE: HIST-013 APPDATA is null

Sep 03, oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries load 2015 12:18:55

SEVERE: NET-013 APPDATA is null

Sep 03, 2015 12:18:55 oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries save

SEVERE: NET-013 APPDATA is null

03.09.2015 12:18:56: updated information on what will be done

0 lines merged.

0 lines merged.

03.09.2015 12:19:15: updated information on what will be done

0 lines merged.

Exception in thread "cleansing" java.lang.NullPointerException

in java.io.File. < init > (File.java:277)

at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:132)

at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:128)

to oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli$ 1.run(SqlCli.java:356)

In addition, that everything works fine... the script is executed as planned, as expected, the queued files are created...

So what I am doing wrong?

Best regards, Peter

Message geändert durch stueckl - information server added

Message geändert durch stueckl - information server deleted - it's a general problem

If we were talking about developer SQL itself rather than SQLcl, then the solution is simple... you can always force your user settings to a folder accessible in arbitrary writing using the ide.user.dir environment variable just add something like this line to the file sqldeveloper.conf to your installation:

AddVMOption - Dide.user.dir =

SQLcl, however, is hard-coded dependency on APPDATA in Windows (and user.home on Linux).  May not be feasible in your case, but in some cases simple, APPDATA can be overridden in the script that launches the SQLcl and the NetEntries and xml SQL history files are read from / written to this file.

For example: value APPDATA = C:\Temp

Tags: Database

Similar Questions

  • iOS 10 times to start and stop the music messed up

    I'm running a SE 64 GB iPhone with iOS 10. Many songs from my iTunes library has some moments of power, but after update, they are all mixed. Songs don't start or stop when they're supposed to, or they're going to start and stop at a random time, which is annoying. The same problem was in the beta, causing me to backup on iOS 9. I assumed that this bug would be fixed in the final version. All the solutions in addition to remove and re - download my library?

    Hello Carnage1215,

    Thank you for reaching out to the Community Support from Apple. I understand your music has had some problems and I want to help him. By the sounds of things that your songs start may be delayed or in the middle of the piece, is that correct?

    Before you make too much trouble shooting, it's a good idea to make a backup of your iPhone If you don't have it already. If you do not know how to save your phone from this article will guide you in the process: the backup of your iPhone, iPad and iPod touch

    Once you have made a backup, I would recommend to reset all the settings on your iPhone. This will ensure that all old data of a version of iOS parameter are removed and reset default. This removes all data and applications, photos or contacts, but it removes all of your preferences for the Wi - Fi, Bluetooth, do not disturb, Notifications, general, sounds, contact ID, brightness & paper painted and privacy, then you may need to define these things upwards after this reset.

    Do this please go to settings > general > reset > reset all settings.

    If you always use the same behavior after you restart your phone, please inform the community. We are all here to help.
    Best regards.

  • My Mac Mini is extremely slow and any video will start but soon stops and intermittently starts and stop immediately. What is the reason?

    My Mac Mini (end 2012) 2.5 ghz memory 8 GB Yosemite 10.10.5 is extremely slow. I read a few articles on communities, but unable to solve the problem. I plan to upgrade memory soon. In addition, a video game doesn't quite work. It starts and stops in 5 seconds and restarts it for a few seconds and stops completely. An advisor to fix the problem will be appreciated.

    When you see a beachball cursor or the slowness is particularly bad, note the exact time: hour, minute, second.

    These must be run as administrator. If you have only one user account, you are the administrator.

    Run the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Each message in the journal begins with the date and time when it was entered. Highlight date back to the time you noted above.

    Select the messages entered since then until the end of the episode, or until they begin to repeat, whichever comes first.

    Copy messages to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost all this is useless to solve any particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Complete noob - would like to measure the voltage to manual start and stop

    Hello

    As the topic says I'm a complete noob when it comes to programming OR.

    I'm looking for someone to point me in the right direction

    Installation program:

    Windows8 office

    Visual Studio 2013

    NI 6255 PCI data acquisition card

    Block connection OR SCB-68

    What I want to do:

    I want to write a console application to measure the voltage on the signal ai16

    -I want to be able to start and stop the application manually

    -I want to be able to pressure measured in a CSV output.

    Where I am:

    I compiled and ran the example "NOR-DAQ\Examples\DAQmx ANSI C\Analog In\Measure voltage.

    It is said that I have "collected" samples but I don't know what that means, as I do not see an output file...

    What I don't understand:

    Samples - I do not understand cela or know even where to start

    How can output file - I get the file to save the collected data.

    Thanks in advance

    Chad

    Hi Arron

    Thanks for the link, unfortunately, it has not helped because the instructions were for Visual Basic and C++ not. It was my fault for not putting the language of prog that I need help in my original post.

    However, I started to find help on this link: http://www.ni.com/tutorial/5409/en/

    -With the help of NOR-DAQmx in text based programming environments

  • I want cRIO to start and stop the acquisition by push physical button on the cRIO, is this possible?

    When you use my cRIO 9024 on the ground, I prefer to be able to start and stop the acquisition with pressing a physical button on cRIO.

    I want to say I don't want it to be "as a start-up," I don't want cRIO to start the acquisition as soon as the power supply is ensured.

    Is this possible?

    Hi Cashany,

    you will surely find this switch status. But there are easier ways (but more expensive) for a button. Fiddling with a pen or a small screwdriver to switch USER1 is not what I call "user friendly"...

    -You have at least 2 voltage inputs on your module available. Use a switch voltage on the power inputs. Use a 'real' button!

    -You have an available serial port. You can set some pins on GND or voltage and check their status inside the cRIO/RT target...

  • Why my computer does not delay when I try to watch the video again? It's a constant start and stop and buffering?

    I get a lot of golf maaterials and lesson over the internet.  It became a real pain and a problem for me to keep up with instructions.  When I received instruction to internet and start to play the video it winds and winds and play them for a few seconds then start and stop throughout the presentation.  What can I do to fix this problem?

    If several computers are using the internet at the same time, it might slow down the video stream on a computer (laptop or desktop).

    Or your internet connection is simply not enough fast to stream the videos you want to watch. There are several different speeds for DSL, so the speed increase may help.

  • I installed G10-ebook but when open it and write down the username and password it starts and stops immediately and closes what should I do?

    I installed G10-ebook but when open it and write down the username and password it starts and stops immediately and closes what should I do?

    Hello

    Step 1: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.
    The System Configuration Utility dialog box appears.
    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

    Step 2: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Reference:
    Using the event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true

    Understanding of event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true

    Procedure to view and manage event logs in Event Viewer in Windows XP
    http://support.Microsoft.com/kb/308427

  • Records of Vista Media Center starts and stops at the wrong time

    I use Windows Vista Home Premium, SP1 and that you may have noticed that when I schedule recordings for some a particular channel, Media Center starts 2 minutes beforehand and ends 2 minutes in advance.  This affects only shows record from my local affiliate Fox - all other shows for other strings start and stop at the appropriate time.

    I checked the system clock with the start times of the shows and both are correct.  In fact, I saw one day Media Center started to record for a show that did not begin until 08:00 at 19:58 (according to the system time).  I had my TV on at the same time and was able to verify that the program in question had not yet begun, so the flow of the internet was sychned with the dissemination of local transmission.

    It's very frustrating because I miss the end of some shows and cannot always extend registration ends because I'm ordering another channel, the next hour.

    I have the same problem with the FOX network...

    -1 make sure your clock automaticly sets in the internet and update once by pressing the link (which makes that he can see the time server)...

    There are two ways you can go with this:

    -If your departure time is correct, then just go to the Planner and choose the program (or series) you are trying to install, select the recording settings (or adjustment of series) or advanced setting... There is an option to "stop recording" 1 min, 2 min, 3 min, 5 min, until 2 hours after the recording is finished... I have mine set to 5 minutes after, and she fixed it...

    -If the starting time is disabled (as mine is), to enter ERM and manuver to tasks > settings > TV > recorder > recorder defaults

    This is where you define all the flaws of the recorder, find "Start when possible" and "Stop when possible", 4 min value (max allows MCE)... Save and exit, restart the machine too...

    You should be good to go...

    PS, I just read the last sentence in your post, you must only have a tv tuner card in your machine (I have two, and that's the reason why I bought two), so you can always have a problem when recording two different channels (back to back on the same channel should work okay).

  • Under Vista, my fan starts and stops, makes a loud sound and the power light flashes

    My fan starts and stops, resembles a car reving his engine. The power led also flashes. Gateway gt

    * original title - my fan starts and stops, resembles a car reving his engine. The power light flashes too *.

    Hello

    If you have nothing on the screen, including a splash with logo screeen, etc, contact gateway if under warranty

    If it is under warranty, contact a local reputable computer repair workshop

  • How to stop the EN icon appear in Windows 7 Pro to start and stop

    I have a language loaded on my computer.  Whenever the computer starts and stops at the icon IN displayed on the screen.  I looked in the obvious places like Start > Control Panel > clock, language and region, for a possible solution for this turn.  The language toolbar is turned off and is not reduced to a minimum or displayed anywhere.

    How can I prevent the EN icon appears?

    Thanks Omnicore you snapped.

    I don't know if that has an effect, but under keyboards, I got two installed?  The keyboard for the United States and the other for the United Kingdom.  I deleted the one for US as I am in England, applies the settings and rebooted the system.  The stop screen does not display the icon of EN, but on the home screen icon EN reappeared.

    So I applied the settings of copy on the administration tab, and after the system restarts, it erased the EN icon on hospitality and the stop of the screens.

    I appreciate you taking the time and allows you to reconfigure your computer to solve this problem for me.

  • Black horizontal lines on the LCD screen at a specific time during the start and stop

    Hi, I am currently using a Presario CQ61 Notebook PC.  My problem, as indicated in the title, are black lines on the LCD screen, apparently when the screen is reset or enclose itself turned off during the start and stop only. From the judgment, he produced a split second her stops the hard drive, after that the screen is black. The lines and then quickly disappear. At startup, lines appear after the Windows logo has passed and the screen went from black to start loading the login screen.

    The LCD is in perfect condition, all using the PC. No line, no discoloration, etc.. Nothing extraordinary either. The problem does occur only during these two periods, specifically. I am also unable to note the lines when I'm looking directly at the screen. I have to be standing next to the PC, at an angle.

    Now, I had this PC for a considerable amount of time, however, I never paid much attention to the screen when starting upwards or stop, so this could definitely be something that the laptop has done since I bought it. I also read on similar problems, and it could be an outdated video driver or BIOS.

    I want to just make sure that it is not a major problem. Thank you all!

    Hello

    You have a few options in my opinion please try these steps can help you solve your problem.

    1) click Start, type msconfig.exe in the start search box and press ENTER to start the System Configuration utility. Under the Services tab, click to select the hide all Microsoft services check box, and then go to tap Start , click on disable all. Click apply OK restart the device.

    (2) please visit the HP website and update the Bios and graphics drivers on the unit.

    Let us know how it goes!

    * Although I am an employee of HP, I speak for myself and not for HP.

    Click the White Star Kudos to say thank you *.

    Please check accept as Solution if it solves your problem *.

    Concerning

    Maton

  • Can you start and stop the glassfish server in JDeveloper 12 c and how?

    Mr President.

    Can you start and stop the glassfish server in JDeveloper 12 c and how?

    Concerning

    have you looked at

    http://www.Java-n-me.com/2014/02/GlassFish-extension-for-JDeveloper-12C-go-live.html

  • Start and stop Virtual Machines with the system

    Hello

    In a server cluster @vcenter HA/DRS 5.1, I enabled start and stop virtual machines with the system option but after I checked two days later, he is off again somehow. What makes this option off? I had a power failure in the datacenter. vCenter server has not been upward. I started all of the ESXi servers manually then went all VMs account is declining. I want that they start automatically when server ESXi upward.

    Thanks in advance,

    Thank you. This option is more valid than if the hosts are part of an HA Cluster license. I suspect that you configured through the traditional vSphere Client and that it is a bug with this client. If you try with the new vSphere Web Client, you will find a notice that it is disabled and there is no button "Edit".

    Concerning

  • PowerCLI defining politics NTP to "Start and stop with the host" in ESXi 5

    Would appreciate any help in the definition of the strategy NTP on ESXi 5 hosts 'start and stop with the host. My script is currently using the following:

    Get-VMHost MyEsx | Get-VMHostService | where {$_.} Key - eq 'ntpd'} | Game-VMHostService-policy "automatic."

    This sets up the NTP service in "start automatically if all ports are open and stop when all ports are closed.

    "When I cange to 'MyEsx Get-VMHost | Get-VMHostService | where {$_.} Key - eq 'ntpd'} | Game-VMHostService-political ' market / stop with host"" the following is returned:

    «The possible enumeration values are "auto, On, Off«»»»

    Anyone know of a way (in PowerCLI) of the set up for the 'start and stop with host?

    OK, then you should choose politics "on".

    These are the policy values and what they match.

    Like this

    Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} | Set-VMHostService -Policy On
    
  • Determine the range start and stop for a partition partition

    Hello

    Using oracle 11.2.0.3

    We use the interval of separation and the partition Lems auto-generated variety. intervbal (range-hash) 1 month

    So what can you manually check the table and see Beach start and end of the partition is it possible to request to see data dictionary
    the range satrt and stop wishing to have script to automatically rename the generated system partitions based on the involved for example range if the generated partition has max date value

    waoul 3062013 want PART_201306

    Thank you

    >
    Checked user_tab_partitions as have sql geneerator can get the names of partition, but does not see the partition a dstop ranges.
    >
    Range of scores have NO ranges 'start and stop '. They have a high value and identification of the position.

    Data with partition key values< the="" high="" value="" and="" greater="" than="" or="" equal="" to="" the="" 'high="" value'="" of="" the="" partition="" with="" the="" next="" lower="" 'position="" id'="" goes="" into="" that="">

    You have not yet described what you need 'start' and 'stop' for.

Maybe you are looking for