I have an Access database (.accdb) file that must be replaced with a backup copy. Unfortunately, the file is locked with an (.laccdb) and I cannot rename or remove either file.
I don't exactly know who is locking the file and it could be contractors across the globe. So I can't just ask everyone to disconnect.
How can I unlock, remove, or rename the locked .accdb file?
On the machine hosting the database file, open the Computer Management applet in Windows, expand
System Tools > Shared Folders > Open Files
and see if the .accdb and .laccdb files are listed. If so, try closing them either by right-clicking or by selecting the file and choosing "Close Open File" under "More Actions".
I just tried that under Windows 8.1 and it enabled me to delete a local database file that was currently opened by another machine.
Right click on the file and select 'Restore Previous Version.' I just clicked on one that was from the week prior and then the file disappeared after a few seconds.
Related
Operating System: Windows 10 Pro
When I have a file open, my coworker can open the file and does not get notified that the file is already opened or locked. He can work in the file and save, and it overwrites my version. Then when I go to save, I get notified that the file was 'modified outside of Illustrator, do I want to continue?" If you click yes, it overwrites his work and his work is lost. Is this a bug that it does not indicate that the file is already open by another user?
Do you open the file from some kind of NAS server inside your office? Yes everyone can open such file with previlleges, and store their own respective cache. But when it comes to saving/overwrite current file it would produce such error. My solution would be saving your current work as different filename.
Maybe such feature should added by Adobe team, not only in Adobe InCopy where you can contribute to edit to one file simultaneously by different users.
When I got some PyCharm project from my colleague I saw some backup files of *.py files.
This files have types: *.___jb_old___ and *.___jb_bak___.
I open the files in Notepad++ and see that these are identical backup files of the corresponding *.py files.
I asked my colleague, but he didn't know what these are.
Why are there TWO identical backup files for each *.py file?
How can I tune PyCharm? We want to turn off this backup.
Google gave me nothing :(
You can disable "safe write"
Use "safe write" (save changes to a temporary file first) If this
check box is selected, a changed file will be first saved to a
temporary file; if the save operation is completed successfully, the
original file is deleted, and the temporary file is renamed.
https://www.jetbrains.com/webstorm/help/system-settings.html
i had this problem in webstorm when a script file was running and i was editing it in webstorm. when i stopped the script and edited it everything was fine
it's a temporary file used by PyCharm to make sure you change will not be lost when editing files. it's safe to delete them manually, you will only loss very recent changes. IntelliJ IDEA works the same as PyCharm.
How to delete them?
To delete a file on a file system requires two things: 1)you have the permission. 2)no program is using it.
so make sure you have 'w' the permission, and stop all program which is using it. then you can remove it.
How to know which program is using it?
Normally you should already know it. but sometimes some background programs(like crash plan, google drive sync, e.g.) may also hold it quietly, then find and kill all programs may be very tricky. the easiest way is reboot your computer with 'safe mode', in which only the OS kernel is loaded.
I spend two hours to figure out the reason why I cannot delete the temp file even when I have whole permission. a crash plan service is holding it in background. This may not be your issue, but if you cannot delete the temp file, this will save your time.
While JeremyWeir's solution probably does work, the real fix - imo - is to enable write permission on the directory.
Saving a file would only need write permission to that file itself. But with the "safe write", you need permission to create the file and rename it - which means you need write access to the directory.
In Linux this would be e.g. chmod ug+w DIR, if you want to give write access to user and group.
I have exact same issue with PhpStorm after system crash. The fix I found was to manualy delete *._jb_old_ and *._jb_bak_ files and reinstall PhpStorm
I have switched from Toad to Sql Developer and was just looking for certain features in SQL developer which I really found beneficial in Toad.
It had a team coding viewer option which is nice to keep a check on the source codes and versioning, though it had nothing to do with subversion.
Do we have any such feature in SQL developer. How can we manage team coding in SQL developer?
Thanks a lot.
SQL Developer allows the source code control feature which can full fill your requirements, here are the steps:
1. First connect to oracle database(using sql developer) by providing following info:
username, password, hostname, port(1521 by default), sid (orcl by default)
2. Create a repository:
versioning>create local repository>give local folder for the repository path and also provide connection name that you have created in sql developer application.
Next, expand the subversion node in the versioning navigator.
Next, right click on connection and choose new remote directory and provide sql files then click on Ok.
3. Import the files to be versioned:
In the files navigator, select the directory where you unzipped the files from the prerequisites under the files tab.
Next, versioning > import files
4. veiw the files which you want to be versioned:
view> files> choose the file for inside the navigator> then click on Next.
Now, confirm that connection name is mapped to the local directory and select the node sql files, then click on Next.
Click Browse and select the directory where you unzipped the files from the Prerequisites as the source directory, then click Next.
in the filter page, click next.
In the Options page, deselect the Perform Checkout check box and click Next.
Review the options for the Import operation and click Finish.
In the Versioning Navigator, expand hr_orcl > SQLFiles.
Please follow the link for the details along with the pictorial reference: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/appdev/sqldev/srccodexmlext/srccode_otn.htm
Thanks.
There are commercial options such as Red Gate's Source Control For Oracle if your employer is willing to stump up some hard cash (and it is well worth the money IMO). But failing that, I've found another guide which is for SQL Developer 3 - it's probably not that different to Suresh's but it is specifically for 3 which is the version you are more likely to be using so I'll include it here. The author seems to be anonymous, but kudos to them for writing it up. I haven't been able to find a guide for version 4 and I haven't used it yet so I can't say if it's changed much.
The essence of this guide is as follows. Note that I have omitted anything relating to setting up an SVN repo as that information is easily available elsewhere.
Integrating SQL developer with SVN
In sql developer, choose, View > Team > Version Navigator
In Version Navigator, right click on Subversion, and select New Repository Connection and Provide the following details:
Repository URL -> http://ipaddress/svn-repos/project-repos
Connection Name -> Any user defined name.
User Name -> User name of user who is allowed to login into the repository.
Password -> Password of the above user.
Click Test Read Access, to ensure that connection to repository was successful.
Adding Files to repository.
Initially the repository (project-repos) is empty. To add files to the repository follow the steps below.
Choose View > Files. Files tab will appear in Sql developer.
In the Files tab, expand My Computer and select the folder which contains the files to be added.
Choose Versioning > Import Files. Follow the six steps of the import files wizard, by selecting destination(svn repository), source (your hard disk files), filters, options.In step 5 of the wizard (options step), check the “Perform Checkout” check box.
Finally click Finish. All the files of the selected folder (step 2) will be imported to svn repository.
In the versioning Navigator, select the connection name for the repository and click the refresh button. All the files that you have added will appear with their version number in brackets.
Accessing the repository.
Now the repository has been created and files have been imported to repository, other users will need to access the repository.
Create the connection to repository as shown in section 1.
In Version Navigator,expanding the connection name will show all the files imported in Section 2.
Under the connection name select the folder containing the files.
Right click the folder and select Check-out.
Select the destination folder where you want the files to created on your hard drive.
Click ok.
Go to Files tab and click refresh.
Expand the tree and look for the folder the you selected in Step 5. This folder will now contain all the files that you have exported from the repository to your hard drive.
Making changes to files and committing changes to repository.
Any user can make changes to files (files that he has checked out (exported) from repository in section 3 or he has added to repository in section 2).
From the Files tab, go to the folder that you have imported/exported to/from the repository.
Select the file to modify,by double-clicking.
File will open in edit mode. Make the required changes and save it. After you save the file, an asterik(*) will appear near the name of file in Files tab.
Right click the file/folder that contains modified files, and choose Versioning > Commit.
In the dialog box, give your comments for the changes and click Ok. When the commit is successful, the version number of the file will increase by one. All the changes made are now saved in the repository and other users can take these changes as explained in next Section.
Updating changes from the repository.
If a file has been changed and committed by any other user, you can update your local file from the repository version of the file.
In the Files tab, select the file/folder to update.
Right click and choose Versioning > Update.
In the dialog box, choose required options and click ok. Now the file on your hard drive is in sync with the repository file.
I deleted a file & package from my local source dir and I'm trying to replace it using RTC. When I view 'pending changes' the file is not appearing so as to add it again. Also when I right click on the project and select 'Compare' there is no option to compare to the latest in the repository. Right clicking and viewing 'Team' also does not seem to have an option to compare. How do I restore a locally deleted file ?
You need to reload your repo workspace, except you can select the part of the project you want to load.
From "Loading Content from a Jazz Source Control Repository in Rational Team Concert 2.0, 3.0 and 3.0.1":
That will restore the latest checked-in version of your file in your local workspace.
You will see more options (for other cases of deletion) in the article "Finding Lost Content with Rational Team Concert".
If its just a few files you need to reload, you can right click on that component and then select Show->Repository File
In the Repository Files browser, you can look for the file to restore. Right click and select "Load" or "Load As" (if you need to specify where to load it.
I think we have a problem in our FTP scripts that pull files from a remote server to a local machine. I couldn't find an answer in their knowledge base, nor scripting documentation.
We are doing an MGET *.* and then a MDELETE *.* immediately after it. I think what is happening is that, while we are copying files from the server, additional files are copied into the same directory and then the delete command deletes everything from the server. So we end up deleting file we never copied down.
Is there a straight-forward way to delete only the files that were copied, or is it going to be some sort of hack job where we generate a dynamic delete script based on what we actually copied down?
Answers that are product specific would be much appreciated!
Here were the options that I came up with and what I ended up doing.
Rename the extension on the server, copy the renamed files, and then delete the renamed files. This could not work because there is no FTP rename command that works with wildcards (Windows rename command will by the way).
Move the files to a subdirectory on the server, copy the files from that location, and then delete from the remote location. This could not work because there is no FTP command to move the files on the remote server.
Copy the files down in one script and SHELL a batch file on the local side that dynamically builds a script to connect to the server and delete the files that were copied down. This is the solution I ended up using to solve this problem.