How export all Apex applictions in the entire database

We have Oracle 11g R2 database with Apex 4.1
We have around 30 workspaces and around 50 Apex applications installed.
Is there a easier way to export all of these 50 apex applications in one shot using a command line utility ?

The same way as explained in [url https://forums.oracle.com/forums/thread.jspa?threadID=2335626&tstart=0]your previous topic, I presume.

Similar Messages

  • HT4236 I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto. I want to sync both from my ext drive and new albums in iPhoto. No dice. Help!

    I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto. I want to sync both from my ext drive and new albums in iPhoto. My photos on the devices get wiped out when I sync to iPhoto since I deleted all the albums. But when I sync to my hard drive (where I maintained the album structure) the photos are copied to my iPad but lose all the hierarchy and folder structure. Now I have to scroll through thousands of photos to try to find the one I'm looking for. Before I sync any more devices I want to know the following: 1) can I restore the album structure on my iPad by using the photo cache? 2) is there a way to sync both new iPhoto albums AND pictures in the folders in my hard drive? And 3) how can I keep the photo hierarchy structure from my hard drive intact on my devices?

    TigerMom28 wrote:
    I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto.
    Don't do that.
    Copy /Photos/Photo library/ to the external.
    Hold Option and launch iPhoto.
    Select Choose library and select the Photo library you copied to the external.

  • Can I export a sequence without rerendering the entire thing again?

    Using the latest FCP..
    Im working on a project with some heavy boris effects stuff... SLOW SLOW rendering.. The entire sequence is already rendered.. but when I go to export the sequence as a QT movies.. using the current settings.. it wants to rerender the **** thing.. 4+ hours.. instead of just spitting out a QT built with the ALREADY rendered sequences.. The timeline is 1080i XDCAM. The sequences is only 5 minutes long.. So it should export in a matter of minutes if it didnt want to RERENDER EVERYTHING..
    This is killing me right now..
    Can I export a sequence without rerendering the entire thing again?

    Joe
    Lets start at the bottom and work back ....
    What is your target format? You want to export the sequence but for what purpose? Is it for broadcast delivery, for burning to DVD, for web, or ....?
    You note that the timeline is 1080i XDCAM ... well that is a native Long GOP format. When you export it as a single self contained clip then all those GOP structures that make up the different elements of your sequenvce must be broken down and re-conformed into a singole semaless GOP structure that describes the whole. Thats why it is re-rendering.
    And GOP's are a hog to decode and encode ... thats why you're seeing such SLOW SLOW rendering.
    Suggestion number 1) Set your sequence's Render codec to ProRes 422 ... th erender files will be bigger but they rendering itself will be much faster.
    Suggestion number 2) If you are not exporting back to XDCAM media specifically then there is no real reason to export your edit as XDCAM HD. Try exporting as ProRes 422 (as per the render setting) ie choose Export > Quicktime Movie w/ Setting: Apple ProRes 422 (+not Current Settings+)
    Suggestion number 3) If you are working on a big and powerful mac like the latest and greatest MacPro's, then in future just set your sequence codec to ProRes 422 and edit the XDCAM files directly in that ProRes 422 timeline, when done then Export > Quicktime Movie w/ Current Settings
    Hope thats helpful
    Andy

  • How can I select and enlarge the entire doc,ge on a page, reducing the surrounding boarder.  I can move the difference text boxes about independently of each other but the outer most boarders of the main template block appear to be fixed.

    How can I select adn enlarge the entire document/image on a page, reducing the the surrounding boarder?  I can move the different text and image boxes around independently of each other but the outer most boarders of the main template block appear to be fixed.  I thought I would be able to enlarge or reduce my document from 'page layout' but this does not seem possible.

    Inspector > Document > Document Margins
    The word is border. Boarders are the Harry Potters of this world.
    Peter

  • I have finally set up a group in my contacts. Can anyone please tell me how to send an email to the entire group? running Mavericks on iMac

    I have finally set up a group in my contacts. Can anyone please tell me how to send an email to the entire group? running Mavericks on iMac

    Drag the entire group into the To: field of a new message. The group is in your Address Book. You've used a name for it, like My Group. You can simply start typing "My Group" in that To: field and it should appear in a context menu.

  • How do web front ends find the configuration database (moving whole farm to new AD forest)

    We are exploring, as a possible course of action, moving our SharePoint 2007 medium farm to a different Active Directory forest (2008). There is a two way transitive trust between the source and target domains.
    I have established that with such a trust it's possible to add content databases on a SQL instance in another forest, so moving content is not a big issue; we'd stand up new instances and move them: the user accounts are almost all in the target domain anyway.
    However, we have a good deal of customization, including a third-party application that no longer has any support and has historically been appallingly difficult to upgrade/install fresh.
    How do web front end servers find the SQL instance containing the configuration database? If the farm credentials had been previously changed to an account in the target domain, all services stopped and the configuration database moved to a new instance
    with a DNS alias, would the database appear to be in the same location when SQL and SharePoint services were started on (logically) moved web front ends?

    Here is more or less the high-level process for SharePoint 2007:
    Mid- to high-level steps.
    0. Full farm backup
    1. Move users to new domain (in AD). Use stsadm -o migrateuser to migrate the old domain accounts to the new ones in SharePoint
    2. Move service accounts to new domain, or create new service accounts
    3. Update the farm to use the service accounts in the new domain
    stsadm -o updatefarmcredentials (service accounts)
    stsadm -o spsearch -farmserviceaccount
    stsadm -o spsearch -farmcontentaccessaccount
    stsadm -o editssp -ssplogin (for each ssp)
    stsadm -o osearch -farmserviceaccount
    SSO and any other remaining service accounts (CA -> Ops -> Service Accounts)
    Default content access account (SSP -> Search Settings -> Default content access account)
    Customizations (if there are service accounts associated with these)
    3.5 Manual steps
    Application pool accounts
    Update permissions for SQL Logins to make sure the new accounts match the permissions for the old accounts
    Add the appropriate new accounts to the DCOM IIS WAMREG Admin Service
    4. Update the SQL Server service accounts. If SQL Server is shared with other applications you'll want to update the SQL Logins for these other applications as necessary and the SQL Server service accounts (DB Engine, DB Agent, Reporting Services, etc.). Might
    not be necessary if this has already been done or if the SQL server is not changing domains. 
    5. Shut down all services on all servers in the farm (this includes SQL if you are moving to the new domain).
    6. Change domain membership of all farm servers, reboot or perhaps shutdown and bring back up in the following order:
    1. SQL. Verify SQL Server is running and accessible. Check event logs. Resolve any issues.
    2. Central Admin server. Verify CA is accessible, check event logs. Web apps and some services may not be available if they are on servers that are currently turned off. Don't worry about these (yet).
    3. Application servers, search servers, index, query, other. It's likely some or all of the WFEs will go on at this step. Verify services are accessible as expected. Check event logs. Resolve issues.
    4. Any remaining WFEs. Wash, rinse, repeat.
    7. Assuming everything is running as expected, users can access the sites, the sky did not fall, etc. take a full farm backup.
    Hey look, here are some low-level steps too.
    # updates the account used to run the CA app pool and the timer service
    # must be run on the server that hosts CA
    stsadm -o updatefarmcredentials -identitytype configurableid -userlogin NEWDOMAIN\farm_service_account -password Password123
    # spsearch
    stsadm -o spsearch -farmserviceaccount NEWDOMAIN\search_service_account -farmservicepassword Password123 -farmcontentaccessaccount NEWDOMAIN\crawl_service_account -farmcontentaccesspassword Password123
    # osearch
    stsadm -o osearch -farmcontactemail [email protected] -farmserviceaccount NEWDOMAIN\search_service_account -farmservicepassword Password123
    # ssp service accounts
    stsadm -o editssp -title SSP -ssplogin NEWDOMAIN\ssp_service_account -ssppassword Password123
    # Manual steps
    SSP Admin -> Search Settings -> Default Content Access Account
    Application pools: CA -> Operations -> Service Accounts -> Web Application Pool (or use gl-updateapppoolaccount if available)
    iisreset /noforce
    Copy SQL permissions to the new accounts. Not sure why this doesn't happen.
    SSP Service Account
    Farm Account
    Setup Account (not copied because it doesn't own anything, just used to kick off the DB for the other accounts)
    Search Service
    Add accounts to DCOM not sure why this didn't happen
    Component Services -> Computer -> My Computer -> DCOM Config -> IIS WAMREG Service
    Farm account
    Application pool accounts
    Search Service
    SSP Service
    SSP Admin
    Then the fun part. Move the server into the new domain.
    Check for AAMs to see if they reference the current domain. If so, change to the new one.
    Stop all SP services. Join new domain.
    The computer name is a netbios name in SP, this should be painless.
    Some general notes from my experience doing this:
    1. There is no way to update application pool identities with stsadm (I haven't explored using Powershell). You have to go through CA -> Service Accounts to update these.
    2. Some SQL logins and permissions were not created. I compared the permissions before to the permissions after and copied the ones that didn't transfer. This resolved all database access issues.
    3. Had to grant permissions for the service accounts in the DCOM configuration for the IIS WAMREG admin service. I expected this to happen automatically but was not surprised given the history of CLSID 61738644-F196-11D0-9953-00C04FD919C1.

  • Apply all ArchiveLogs manually to the Standby Database

    Hi,
    we can create a Physical Standby Database on Standard Edition, but we have to transfer and apply all ArchiveLogs manually to the Standby Database. How can we do this ?
    many thanks

    Thank you, but I opened a SR and asked :
    1-can we install DATAGUARD (Primary and Standby) with STANDARD edition ?
    many thanks.
    they answered :
    DataGuard is not available with Standard Edition. You need to have the Enterprise Edition in
    stalled on the Primary and Standby Host. The Standard Edition only provides basi
    c Standby Database without Log Transport and Log Apply Services. So you can create a Physical Standby Database on Standard Edition, but you have to transfer and apply all ArchiveLogs manually to the Standby Database.
    that's why I asked you the question.
    What is the exact synatx for recover database using backup control file please ?
    Thanks again.

  • How to create many user in the same database

    hi
    my question is "How to create many user in the same database(application)?"
    for example, i have students, teachers, and staffs user using my application.
    i can create many users to use the same application right?, how ^^''' ???
    (right now i can only create application and then it shows every data in my DB
    but i want it to show only the data for the user who login to that application)
    Thanks.
    ps. i'm newbie, please help T^T

    You need to create a user table within your application that maintains their privileges. If you have LDAP you could use this for authorisation otherwise the table would handle that as well (store passwords etc). Your reports etc would then be filtered on information from this table.
    Check out some of the sample applications to see how authorisation and access is implemented (Online store is one). The how-to on the issue tracking system should also have some useful pointers.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/issue_track.htm#BABBGBJG
    cheers,
    Ron

  • My iTunes keeps crashing.  I have uninstalled and reinstalled, including recreating the entire database, and it is still doing it.  I recently upgraded to 10.5.  Any ideas?

    My iTunes keeps crashing.  I have uninstalled and reinstalled, including recreating the entire database, and it is still doing it.  I recently upgraded to 10.5.  Any ideas?  I am running Windows 7 on a new, decent, laptop.  The music is on the laptop's hard drive.  There is plenty of hard drive space left.
    iTunes starts fine, and I can do stuff, then within a minute or two or three it gives me an error message pop-up. 

    The error message says:
    iTunes has stopped working.
    Windows can check nline for a solution to the problem.
    -> Check online for a solution and close the program
    -> Close the program
    Problem Event Name:          APPCRASH
      Application Name:          iTunes.exe
      Application Version:          10.5.0.142
      Application Timestamp:          4e9243f2
      Fault Module Name:          MSVCR80.dll
      Fault Module Version:          8.0.50727.6195
      Fault Module Timestamp:          4dcddbf3
      Exception Code:          c0000005
      Exception Offset:          0001500a
      OS Version:          6.1.7601.2.1.0.768.3
      Locale ID:          1033
      Additional Information 1:          0a9e
      Additional Information 2:          0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:          0a9e
      Additional Information 4:          0a9e372d3b4ad19135b953a78882e789
    I've chosen both items, neither does anything but close the program.  This problem is new with iTunes 10.5; I did not have it before. 

  • Are there any calls to get the entire database schema ?

    I'm using JDBD Thin, are there any calls to get the entire database schema or do I need to use the thick libray ?
    Thanks.

    This could be done using the Azure Management Libraries for Azure Websites https://www.nuget.org/packages/Microsoft.WindowsAzure.Management.WebSites
    There you can find an API to enumerate your website's running instances.
    var client = new WebSiteManagementClient(new CertificateCloudCredentials("subscriptionid", cert));
    foreach (var webSiteInstanceId in client.WebSites.GetInstanceIds("webspacename", "sitename"))
    Console.WriteLine(webSiteInstanceId);
    You can also see this information using the Azure command line tools (both PowerShell and xplat).
    Note that scaling up doesn't guarantee you'll have more instances (unless you have Always On configured) to get those instances running you'll need traffic to your website.
    Thanks,
    Amit

  • How can I Disable or Remove the entire Bookmarks Toolbar Feature?

    I really LOVE Firefox. With over thirty years into the desktop computing industry, I can honestly say it's one of the most impressive development efforts I've seen. Thank you, seriously, all of you, everyone who has worked toward creating, maintaining and enabling the presence of this truly wonderful application!
    I have never sought specific help with this one thing, and was just reminded a moment ago, how much better Firefox would be (for me) if I could completely disable/ uninstall the entire Bookmarks Toolbar _feature_. By the time this feature appeared, I had already developed and established my own system for filing bookmarks into a preset folder hierarchy. This works -much- better (for me) and I have no use for the Bookmarks Toolbar. It's always in my way, takes up screen space, and just really annoys the fecal-stuffin's out of me. Kinda reminds me of the -worst- things I remember of M$.
    Once the feature is (somehow) killed, I'd like to then...
    ...Remove that folder from Bookmarks (menu, folder, etc -- all of it), and preferably, prevent it ever reappearing (setting 'lock'?).
    I realize this -might- be something not currently 'doable' by standard means. If that should be the case, can someone forward this message into the 'feature request' queue for me? I truly would appreciate that.
    Thank you in advance, and THANK YOU for Firefox!!!

    Wow, cor-el... Did you -intend- your reply to be inane, inappropriate and completely inapplicable?
    How would that possibly do what I asked?
    You -might- consider '''''reading''''' the question, -=before=- you reply. And it's really okay to NOT REPLY if you just don't know. Just an idea.
    Feel better, real soon.

  • How to get the entire database from remote server to my server

    Hi,
    I am running a web application with sample data. Now i need to access the original data through this application. But the original data is located in the other server which is located in Mumbai.
    Now i need the copy of that database to my system(Chennai). with minimum effort.
    It is very urgent...
    Thanks in advance...
    Chaitanya.

    Hi
    Nicolas is right. You can also take advantage of exp/imp utility. That would not only get the entire db in one file but also the size will be a fraction of the entire db size.You can search for DataPump (that uses expdp and impdp) utility to expedite the export/import process.
    For simple exp/imp you can do the following.
    From Remote site(MUMBAI) issue
    ORACLE_HOME\BIN\exp file=c:\fulldbexp09sept05.dmp log=c:\fulldbexp09sept05log.log FULL=Y userid=system/pwd@connectstringOfyourdb
    Get a copy of fulldbexp09sept05.dmp and place it on your local drive in Chennai
    On Local Site (Chennai)
    ORACLE_HOME\BIN\imp file=fulldbexp09sept05.dmp log=fulldbimp09sept05 FULL=Y userid=system/pwd@connectstringOfyourlocaldb
    By this you can take advantage of having a different db name on remote and local sites. This is a fairly easy exercise. You just need to be sure that in your TNSNAMES.ORA you have correctly defined the connectString for your db.
    PS: Create a database on local server with default settings.
    Make use of following to create appropriate tablespaces and users if you desire ie.
    1. On Remote Site open SQLPLUS session and issue this command to find out the tablespaces, datafiles and their sizes
    SQL>SELECT SUBSTR(file_name,1,60) FILE_NAME, tablespace_name, bytes
    FROM dba_data_files
    GROUP BY tablespace_name, file_name;
    Now create the tablespaces on local sites using the result of the above query.
    2. On Remote Site open SQLPLUS session and issue this command to spool user creation script.
    SQL>spool c:\createuserscript.lst
    SQL> SELECT 'CREATE USER ||' IDENTIFIED BY VALUES '||'"'||PASSWORD||'"'||' DEFAULT TABLESPACE '||DEFAULT_TABLESPACE||' TEMPORARY TABLESPACE '||TEMPORARY_TABLESPACE||';'
    FROM dba_users
    WHERE username NOT IN ('SYS','SYSTEM')
    ORDER BY username;
    SQL>spool off
    Now edit this createuserscript using any editor and replace " with '. Copy this file to the local server and run it using @. This will create appropriate users.
    Let me know if you have any problems.
    Regards
    Adnan Mashhadi
    Nicolas I am not sure as how to eliminate the " in my script. Any comment will be appreciated.

  • How to create iSCSI target using the entire drive?

    This sounds silly, but after setting up the DL4100 in RAID 5, I could not assign the entire 11.89TB to an iSCSI target... Only integer numbers seem to be the valid input. And the only choice of TB or GB offered no help because I could not enter: 11890 GB either?! What am I missing?

    Thanks to all who have responded....
    Here's my take: 4TB x4 in RAID 5 = 11.89TB but via iSCSI creation will result in 0.89TB unallocable to iSCSI due to the GUI disabling non-interger values (ie: no decimal points). That is 890GB of storage that is supposedly used for firmware upgrades, logs, etc?! 
    Snooping around I noticed that the validation is only performed via javascript and a quick re-POST to the unit of the params can trigger modification/creation of a non-integer iSCSI volume sizes. Please note that you can only grow volume sizes and not shrink them! Below is a walk-thru of how to do this:
    Disclaimer: *WARNING: USE AT YOUR OWN RISK*
    1) Create the iSCSI volume as per normal but at the integer value less than what you intend (eg: if you wanted 1.5TB, create 1TB) then wait for the iSCSI volume to be created.
    2) Use a web browser with debugging turned on and capturing traffic. For my example I am using Firefox and hit F12 to fire up the debug tool. Pick "Network" and you will see Firefox start picking up all traffic to the DL4100.
    3) Go into the iSCSI volume and choose "Details" to modify it. Put the current size as the modified size and click "Apply". Look in the list of messages to locate a POST message "iscsi_mgr.cgi" that has a Request body with a "size" parameter and select that to be resent.
     4) In this copy of the same message, look in Request Body and the list of parameters being passed back to the unit. You should find one of the parameters called "size". This value is sent to the unit in GB... Change the value to a GB value that you desire (eg: 1TB would appear as "1000", so you can change it to "1500" for 1.5TB) and then re-POST this POST message back to the unit.
    5) Wait for the update to transact and verify that your iSCSI volume has indeed been resized to a "non-Integer" TB value.
    That's it! I hope this helps others who have been trapped by this limitation. Please be mindfull not to allocate all your dive space since as Bill_S has mentioned, some space is required by the system for its own housekeeping operations.
    Good Luck!

  • How to install Yosemite after deleting the entire partition?

    I am trying to install a clean version of Yosemite via Mac OSX utilities. I erased my entire operating system and now want to do a clean install. I have entered the internet recovery mode by pressing command R once the operating system was deleted and restarting the machine.
    I currently have four options which are restore from Time Machine backup, reinstall Mac OS X, get help online, Disk Utility.
    as of now the option reinstall Mac OS X is telling me that it will set up and install a new copy of Lion. How do I have it install the Yosemite?
    when I first purchased in 2012 it did come with the Lion operating system but I have downloaded and installed Yosemite from the App Store.

    Oh, but it is since you have already erase the volume. What more do you wish to do? If you want to do an online Internet Recovery and your computer is able to do so, then do this:
    Install OS X Using Internet Recovery
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    This should restore the version of OS X originally pre-installed on the computer.

  • How do you declare objects in the master database

    I am trying to register our CLR assembly as an unsafe assembly without having to make the database trustworthy.  Since making the database is_trustworthy_on = 1 is not a best practice, and would cause some of our customers (and our development process)
    a little bit of grief.
    I have read a ton about it but am still having trouble.
    The reason the assembly is 'Unsafe' is because it is calling the TimeZoneInfo class to convert between timezones, since we are not yet on UTC dates.  We plan to in the future but that's a big project.
    We are also not using the 'SQLCLR' but rather have written our own class library and just have a project reference to it, which works just the same, but we have found to be better for the C# programmers.
    I am playing with signing the assembly using an SNK file and have figured out what I need to do, including 1) creating a master key, 2) creating an asymmetric key using the same SNK file that signed the assembly, 3) creating a login for the asymmetric key,
    and 4) granting unsafe assembly to the login.
    When I do all that with straight SQL, it actually works!  But I am having trouble fitting this into our SSDT world.
    Should I create a separate SSDT project for items #1 through #4 above, and reference it, and check 'Include composite objects' in our publishing options?  As stated in this blog post though, I'm terrified of messing up the master database, and I'm not
    excited about the overhead of another project, a 2nd dacpac, etc.
    http://blogs.msdn.com/b/ssdt/archive/2012/06/26/composite-projects-and-schema-compare.aspx
    Since we do use a common set of deployment options in a deployment tool we wrote, which does set the 'block on data loss' to false, and the 'drop objects not in source' to true, b/c we drop tables all the time during the course of refactoring, etc. 
    I don't want to drop anything in master though, and I don't want to have to publish it separately if we didn't have to. 
    I suppose I could just have some dynamic SQL in a pre-deployment script that takes care of the master database, but I was trying to do it the 'right' way, in a declarative style, but struggling.
    So, in short, what's the recommended approach for getting an 'unsafe' CLR assembly into an SSDT project?
    The error that started all this was:
    CREATE ASSEMBLY for assembly *** failed because assembly *** is not authorized for PERMISSION_SET = UNSAFE. 
    The assembly is authorized when either of the following is true:
    the database owner (DBO) has UNSAFE ASSEMBLY permission and the database has the TRUSTWORTHY database property on;
    or
    the assembly is signed with a certificate or an asymmetric key that has a corresponding login with UNSAFE ASSEMBLY permission.
    Also, would a certificate be better than an asymmetric key?  I'm not entirely sure of the difference just yet to be honest.
    Thanks,
    Ryan

    After much fighting with this, figured something out as a workaround, and thought I'd share it.
    First, I'm pretty certain the SSDT declarative way for these master objects just doesn't work yet.
    My workaround was to make a pre-deployment script (that runs when we create new databases, as well as for the current release), that takes care of the security items needed to support a signed CLR assembly with unsafe permissions.
    One issue we were running into was when it came to creating the asymmetric key, there are 4 ways to do so, and we didn't want to depend on a hard-coded/absolute file path.  The 4 ways are "From file", "from external file", "from
    assembly", or "from provider".  I still don't 100% understand the from provider way, but ultimately we are actually using the from assembly way, with a little trick/hack I did that allows us to not have to use the 'from file' way and to
    reference a hard-coded path on someone's C:\ drive.  I really really didn't want to do that b/c we create local dev databases all the time and not everyone has the same paths setup.  Also, our databases are deployed on our servers as well as remote-hosted-customer
    servers, and up until now, the database release has not needed file system access.  Even the CLR itself is created using assembly_bits, which is awesome.
    So I thought of something...
    What if I had a simple/temporary assembly, which I create from assembly_bits, use to import the public key from, through the create asymmetric key from assembly command, and then drop as if it never existed?
    Well...it works!
    Here is my current prototype of a pre-deployment script, which I'll go through and cleanup more, but thought I'd share.  I also want to document how I created the temporary assembly_bits in case anyone ever wants or needs to know, even though they really
    shouldn't.  But it should make them feel better.  Basically I just created did this to get them:
    1 - Created a C# Class Library project in the solution.
    2 - Added our .SNK to that project and removed the 'Class1.cs' that it created by default
    3 - Signed that class library with the .SNK
    4 - Added a project reference to that class library from the main database solution.
    5 - Generated a deployment script (but didn't run it) and grabbed the create assembly statement (copy/paste)
    6 - Deleted the temporary project
    7 - Pasted the code I had copy/pasted into the pre-deployment script
    Note that the objects do apparently need to go into MASTER, so at the end of the pre deployment script, I switch back to the automatic [$(DatabaseName)] after first having done USE master.
    Hope this helps someone.  Finally got it!
    BTW - The other way we almost used was to introduce a SqlCmdVariable of $StrongNameKeyFilePath but that would have been a hassle for people to set whenever they got a new machine, etc.
    Thanks,
    Ryan
    PRINT '**************************************************************************'
    PRINT 'Pre\SetupMasterDatabaseKeysAndLoginsIfNecessary.sql'
    PRINT '**************************************************************************'
    PRINT '************************************************************************************'
    PRINT 'If they do not already exist, create the database master key, as well as the asymmetric'
    PRINT 'key, from the Strong-Named File (.SNK) which signed the CLR assembly.  Finally, also'
    PRINT 'create a login from that asymmetric key and grant it the UNSAFE ASSEMBLY permission.'
    PRINT 'This is all necessary b/c the CLR currently has to be referenced for UNSAFE permissions'
    PRINT 'in order to access the TimeZoneInfo class.  This code and these objects can be removed'
    PRINT 'if the system is ever updated to use all UTC dates and no longer requires the TimeZoneInfo class.'
    PRINT '************************************************************************************'
    USE master
    PRINT N'Creating Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    CREATE ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        AUTHORIZATION [dbo]
        FROM 0x4D5BlahBlahBlah;
    IF NOT EXISTS (SELECT 1 FROM sys.symmetric_keys WHERE name LIKE '%DatabaseMasterKey%')
        BEGIN
            PRINT 'Creating Master Key...'
            CREATE MASTER KEY
                ENCRYPTION BY PASSWORD = 'I Removed This Part For This Post'
        END
    IF NOT EXISTS (SELECT 1 FROM sys.asymmetric_keys WHERE name = 'ClrExtensionAsymmetricKey')
        BEGIN
            PRINT 'Creating Asymmetric Key from strong-named file...'
            CREATE ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
                FROM ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        END
    IF NOT EXISTS (SELECT 1 FROM sys.server_principals WHERE type_desc = 'ASYMMETRIC_KEY_MAPPED_LOGIN' AND name = 'ClrExtensionLogin')
        BEGIN
            PRINT 'Creating Login from Asymmetric Key...'
            CREATE LOGIN [ClrExtensionLogin] FROM ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
            PRINT 'Granting Permissions to Login created from Asymmetric Key...'
            GRANT UNSAFE ASSEMBLY TO ClrExtensionLogin
        END
    PRINT N'Dropping Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    DROP ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
    USE [$(DatabaseName)]

Maybe you are looking for

  • Hide Logical Db Selection Filed

    Hi guys!! Is it possible to hide a selection field provided by the logical database? For instance: I use the LDB PSJ. In my ABAP code I have:                                     GET prps_r.                                     Get proj. When I run the

  • Flex FileReader, file open component??

    Hello Problem 1: I'm new to flex, and I need help to create a function that can open and read an html source. I know html file cannot be renderd, but I only want to read it's source code and display it into a textArea. Problem 2: How can I open a htm

  • Editing 5.1 Using SPDIF

    I am using a sound card from my computer that outputs over my digital SPDIF connection directly to a receiver that decodes Dolkby, PCM, etc... If I am watchign a movie or listening to audio that is encoding, I have no problem with surround sound. I w

  • HT3743 how can i get my iphone working asd it was jail broke and wont restore

    I swapped my blackberry for an iphone 3gs. I have been told its jailbroke. could someone please tell me how to take it off, i have tried itune and it say i have an error on the phone. i dont know what else to do. Thank you

  • Contents & Material for C_TAW12_04 certification cousrse

    Dear Friends, I want material for perticular SAP  ABAP Certification Course name: C_TAW12_04 SO please provide me anyone have internet link,pdf and other material related to this. Please do needful. You can also send it on my gmail id. prashant.brahm