Compiling Oracle Forms R12 Remotely using Powershell
I am trying to create a Powershell script to compile Oracle Forms .FMB file. The script works on the Server where R12 is. However, the script does not work outside of it, even if I Remote into the server from Powershell. Below you can find the script that I am trying to use. Any suggestions would be greatly appreciated.
# Set Variables
$Server = "SERVER"
$FormLocation = "C:\FORMS"
$DbUser = "USER"
$DbPass = "PASS"
$DbName = "DBSERVER"
$FormName = "FORM1"
$ModuleType = "FORM"
$ScriptBlockContent1 = { $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") }
$ScriptBlockContent2 =
{
param($user,$pass,$db,$formName,$moduleType)
$env:FORMS_PATH = "D:\Oracle\MW\FR_Home\bin"