Oracle Apex 19.1 Cannot Export Application wwv_flow.accept.html - runtime

I have an application I would like to move to Test. I have navigated to Export (going through the Application Builder -> App -> Export).
I choose Runtime Only. All others are defaults.
Instead of asking where to save the f100.sql file I get "wwv_flow.accept.html" in the dialog box.
If I save this and open it the error seems to be:
ERR-7620 Could not determine workspace for application ().
I am connecting over a VPN into the database. Would this have any effect on things?
Is there a general cause for this behaviour? I have exported this application before into a Build environment.
ETA - Even if I choose Build and Runtime option I get the same.
Thanks.

When importing an application through command-line or SQL Developer, you should meet two terms:
You need to have a workspace set in the testing environment (say TEST_WS), and get connected to it
ALTER SESSION SET current_schema = TEST_WS;
You need to run this snippet to adjust the different workspace name:
BEGIN
apex_application_install.Set_workspace('TEST_WS');
apex_application_install.generate_offset;
apex_application_install.Set_schema('TEST_WS');
apex_application_install.Set_application_alias('TEST_F100');
END;
also, when exporting the application you can alter "Owner Override" to the schema name in the destination pdb

Related

Forms12c Frm-42431 Unable to Initialize Debugger Debugger Error

Version Information
Weblogic 12.2.1.3,
Forms [64 Bit] Version 12.2.1.3.0
I have installed Forms Builder only on my machine. I follow the proper configuration steps to configure the forms.
Full installation of WebLogic on a separate server.
When I am trying to run a module through the form developer's debug push button it shows the below message
"Frm-42431 Unable to Initialize Debugger"
I made the change in formsweb.cfg allow_debug=true, and also debugger.jar is included in class path in default.env.
Help is also not working. When I try to open the help system. The below message is open.
FRM-18105: Failed to start the help system.
Please help me find out the solution for this problem.
You need to make sure your local environment variable(FORMS_BUILDER_CLASSPATH) is the same as what is in the registry editor(check under KEY_OracleHome1). If not the same or you don't find it in the local environment variables just do this:
Open Registry Editor -> computer -> HKEY_LOCAL_MACHINES -> Software -> Oracle -> KEY_OracleHome1
Look for FORMS_BUILDER_CLASSPATH right-click -> modify -> Copy all under value data
Paste it into the notepad and look for ORACLE HOME under FORMS_BUILDER_CLASSPATH do the same copy all under value data textbox that the path of your files.
Then go back to your note pad replace all '%ORACLE_HOME%' with the path you copied on oracle home.
It should look like this after replacing all :
C:\Oracle\Middleware\Oracle_Home\jlib\frmbld.jar;C:\Oracle\Middleware\Oracle_Home\jlib\importer.jar;C:\Oracle\Middleware\Oracle_Home\jlib\debugger.jar;C:\Oracle\Middleware\Oracle_Home\jlib\utj.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\jlib\ewt3.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.bali.share\share.jar;C:\Oracle\Middleware\Oracle_Home\jlib\dfc.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.help\ohj.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.help\help-share.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.help\oracle_ice.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.bali.jewt\jewt4.jar;C:\Oracle\Middleware\Oracle_Home\forms\java\frmwebutil.jar;C:\Oracle\Middleware\Oracle_Home\forms\java\frmall.jar;C:\Oracle\Middleware\Oracle_Home\forms\java\frmwebsocketjsi.jar
Then go to environments variable under system variable click new then variable name add FORMS_BUILDER_CLASSPATH on value add all text you copied on note pad after replace.
Close and Open forms again it should work now.

SonarQube is not saving settings

Using SQ 6.2 I observe a strange behaviour: Whe I modify and save no matter which setting in the administration UI and then reload the page, everything looks reset.
Example: Set "General / Delete all snapshots after" to "5", press "Save" and then press "F5". The field is empty again.
Does SQ store its settings in the database or on the filesystem? May I have wrong access rights then?
We're using an external PostgreSQL database.
Thanks for the input. The problem was caused by some totally different reason:
We had the ReSharper plugin installed, which caused a warning in its settings tab like "path to inspectcode and resharper cannot be used simultaneously".
After uninstallation of ReSharper all was fine again and the UI was behaving as expected and displaying all settings' values.
If you define a setting in sonar.properties, its value will not be rendered in the settings web page - and you are not able to change it there.
Have a look at Administration / System / System info to see the properties currently in effect.
To change the value of Delete all snapshots after:
Either change sonar.dbcleaner.weeksBeforeDeletingAllSnapshots in your sonar.properties
Or remove sonar.dbcleaner.weeksBeforeDeletingAllSnapshots from your sonar.properties and set the value in the web user interface (its value will be stored in the database, in this case)

How to generate windows memory dump when application crashes.?

Is there an easy way of generating the memory dump for the crashed application?
I have a situation in which the customer received the code which is generating the crash, as the code itself has no signal handlers for the backtrace generation on abort I was wondering if there is an easy way of telling windows to generate the memory dump of the crashing application.
Ideal solution wouldn't involve the installation of the debug tools (or the code modification) but if this is not possible, it would be really helpful to know.
One simple way to dump memory when application crashes is by using windows taskmanager.
When ever an exception or an application error occurs windows pops up an memory dialog and shows the address location which was causing a crash.Before you click ok on the message box open Task Manger and right click on the crashed application and select Create Dump file.Take a look at the screen shot below.
Select the file
2)Another way of generating user mode dumps is by adding the following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting >\LocalDumps\application.exe
application.exe should be replaced by the application name which is under scanner.
under this key following values can be added
DumpFolder
The path where the dump files are to be stored. If you do not use the default path, then make sure that the folder contains ACLs that allow the crashing process to write data to the folder.
For service crashes, the dump is written to service specific profile folders depending on the service account used. For example, the profile folder for System services is %WINDIR%\System32\Config\SystemProfile. For Network and Local Services, the folder is %WINDIR%\ServiceProfiles.
DumpCount
The maximum number of dump files in the folder. When the maximum value is exceeded, the oldest dump file in the folder will be replaced with the new dump file.
DumpType
Specify one of the following dump types:
0: Custom dump
1: Mini dump
2: Full dump
CustomDumpFlags
The custom dump options to be used. This value is used only when DumpType is set to 0.
The options are a bitwise combination of the MINIDUMP_TYPE enumeration values.
I have found the answer myself, the msdn specifies the debug registery in the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error\LocalDumps
The following values need to be set:
DumpFolder
DumpCount
DumpType
CustomDumpFlags
The extensive documentation is available here.
If the registers do not exist it is possible to create them manually and windows will pick it up.
Also this is possible without directly modifying the registry with following steps:
Click Start, and then click Control Panel.
Double-click System, and then click Advanced system settings.
Click the Advanced tab, and then click Settings under Startup and Recovery.
In the Write debugging information list, click Small memory dump (64k).

Why does building in Xcode overwrite my SQLite database?

First of all, I'm not using Core Data, I'm using SQLite only.
I save the data in the table and then query them by opening the app and looking at the data using SQLiteStudio. I even create a LOG to check that the data is saved, and yes, it is saved.
But when I STOP and run the simulator again to consult, there is no more data!
Is Xcode overwriting the database every time? Or is something else happening that is outside my limited knowledge?
Without knowing more about how your application is setup, how you've got your app configured to build, or how it operates on the SQLite DB file in question I'll only be able to offer some pointers in things you can go check out about your code and build configuration that may be the source of your phantom deletions. Of course, if you have other info to provide, I'd be happy to edit my answer!
Case 1: 'Create DB' always running?
One thing that may be tripping your app up is what happens leading up to the decision to create a new SQLite DB file or look/open an existing file. If the code creating an empty DB is always running, then each time your app starts, your old DB file is getting overwritten with a blank DB.
Case 2: Using a 'starter' or 'template' empty database?
Sometimes developers may provide a blank database that contains the initial database schema (the general tables and structure) as well as some default or sample data. If your app does this, perhaps the logic leading up to the decision to apply that default database is accidentally always being triggered? If so, use of NSUserDefaults to record a boolean indicating the DB was successfully created may be an avenue to use to skip past the 'Load my starter DB' code. Alternatively, you could check for the existence of your DB file, or see if the contents of a specific table are different from the template data, etc.
Case 3: Different Behavior between 'Build & Run' vs. 'Run Without Building'
There's a not-so-well-known option in the Product > Perform Action menu labelled 'Run without Building' that will essentially kickoff another Debug session using the version of the application you just finished running in the Simulator or on Device. When you use this option do you see any different behavior with your database or is it still blank?
Case 4: Different Behavior when run directly in Simulator outside of an Xcode debugging session?
Part of the 'Run' operation is a build phase which may trigger the 'Copy Resources' phase even if your app hasn't changed since the last execution (as you suggest is the case in your question). If you are providing a stock 'default' or 'template' DB file and your app is simply opening and editing that 'template' during the first execution of your app, then Xcode may be replacing it with a clean copy on the subsequent 'Run' operations where 'Copy Resources' is happening. A way to test this avenue:
Build and Run your app to the simulator using Xcode like normal.
Perform some operations that would result in the creation or editing of data in your app's database.
Click the stop button in Xcode to return to the Simulator home screen.
Double-click the home button on the simulator (or if there is no home button, press CMD+SHIFT+H twice to bring up the multitasking bar and force-quit out of your application.
Check and see if your DB file has data in it.
If no data, then there is an issue persisting your changes into the database and we need to get that problem solved first. Otherwise:
Relaunch your app directly from iOS Simulator and perform different operations that would result in more or different changes to the database.
Click on the home button to return to the iOS Home Screen.
Force-quit your appellation as was done in Step 4.
Check and see if your DB file data has changed (but still has data) or has blanked out.
Finally, make sure you are following Apple's guidance about where to store user-data, if you are inadvertently storing something in an incorrect file path doesn't typically result in blanking of data, it may be prohibiting writing of data which could be interpreted as your data getting overwritten especially if you are interrogating it while it still is residing in an in-memory process. There's some really useful guidance about file paths in the Table 1-1: (http://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html)
Locating your Simulator App on your Mac's Hard Drive
To be thorough (and you may already know about this!), iOS Simulator applications are stored on your Mac's hard drive just like other files on your machine. Their organization mimics that of a physical iOS device. To get to your App and its data:
Open a new Finder window.
Press CMD+SHIFT+G or choose 'Go to Folder' from the 'Go' menu.
Paste the following into the 'Go to Folder' box then click 'Go': ~/Library/Application Support/iPhone Simulator/
Select the folder that matches the iOS version of the simulator you built to.
Click on Appications.
You'll then be presented with zero or more folders, each folder that appears will have a string of digits separated by hyphens. Navigate through this list until you find the one containing your app. You can then browse, and copy data out of this folder to somewhere to be examined by other tools on your Mac.

Installer project with 2 primary output files

I created a multi tiered .net application which includes the Client and the Server projects. I want to create setup for it so that during installation, the user may choose to install the Server or the Client (by selecting appropriate radio button). I created an interface for the selection but it always installs both the Server and the Client no matter which option I select. How can I choose to install only Server or Client based on the selection?? Thanks.
You need to set the Condition property on the appropriate output files based on the radio button selections. Here is an article that shows step-by-step instructions:
http://msdn.microsoft.com/en-us/library/9x23561f(VS.80).aspx
It's quite simple. Assume that you have 'ServerInstall' and 'ClientInstall' (let those be simplified terms for file systems etc. corresponding to each version you want to install). Now, having a RadioButton(2) dialog box in your installation, you gain access to a condition (in the example - BUTTON2), which has to be set in each file to value 1 or 2 depending whether the file is specific for client or server.

Resources